Netscript Basic FunctionsΒΆ
This page contains the complete documentation for all functions that are available in Netscript. This includes information such as function signatures, what they do, and their return values.
- hack()
- grow()
- weaken()
- hackAnalyzeThreads()
- hackAnalyzePercent()
- hackChance()
- growthAnalyze()
- sleep()
- print()
- tprint()
- clearLog()
- disableLog()
- enableLog()
- isLogEnabled()
- getScriptLogs()
- tail()
- scan()
- nuke()
- brutessh()
- ftpcrack()
- relaysmtp()
- httpworm()
- sqlinject()
- run()
- exec()
- spawn()
- kill()
- killall()
- exit()
- scp()
- ls()
- ps()
- hasRootAccess()
- getHostname()
- getHackingLevel()
- getHackingMultipliers()
- getHacknetMultipliers()
- getServerMoneyAvailable()
- getServerMaxMoney()
- getServerGrowth()
- getServerSecurityLevel()
- getServerBaseSecurityLevel()
- getServerMinSecurityLevel()
- getServerRequiredHackingLevel()
- getServerNumPortsRequired()
- getServerRam()
- serverExists()
- fileExists()
- isRunning()
- getPurchasedServerCost()
- purchaseServer()
- deleteServer()
- getPurchasedServers()
- getPurchasedServerLimit()
- getPurchasedServerMaxRam()
- write()
- tryWrite()
- read()
- peek()
- clear()
- getPortHandle()
- rm()
- scriptRunning()
- scriptKill()
- getScriptName()
- getScriptRam()
- getHackTime()
- getGrowTime()
- getWeakenTime()
- getScriptIncome()
- getScriptExpGain()
- getTimeSinceLastAug()
- sprintf()
- vsprintf()
- nFormat()
- prompt()
- wget()
- getFavorToDonate()