Netscript¶
Netscript is the programming language used in the world of Bitburner.
When you write scripts in Bitburner, they are written in the Netscript language. Netscript is simply a subset of JavaScript. This means that Netscript’s syntax is identical to that of JavaScript, but it does not implement some of the features that JavaScript has.
Sections:
- Full documentation
- Learn to Program
- Netscript 1.0
- NetscriptJS (Netscript 2.0)
- Script Arguments
- Basic Functions
- hack()
- grow()
- weaken()
- sleep()
- print()
- tprint()
- disableLog()
- enableLog()
- isLogEnabled()
- scan()
- nuke()
- brutessh()
- ftpcrack()
- relaysmtp()
- httpworm()
- sqlinject()
- run()
- exec()
- spawn()
- kill()
- killall()
- scp()
- ls()
- ps()
- hasRootAccess()
- getHackingLevel()
- getHackingMultipliers()
- getHacknetMultipliers()
- getServerMoneyAvailable()
- getServerMaxMoney()
- getServerSecurityLevel()
- getServerMinSecurityLevel()
- getServerRequiredHackingLevel()
- getServerNumPortsRequired()
- getServerMaxRam()
- getServerUsedRam()
- serverExists()
- fileExists()
- isRunning()
- getPurchasedServerCost()
- purchaseServer()
- deleteServer()
- getPurchasedServers()
- getPurchasedServerLimit()
- getPurchasedServerMaxRam()
- scriptRunning()
- scriptKill()
- getScriptRam()
- Advanced Functions
- Hacknet Node API
- Miscellaneous