hasRootAccess() Netscript Function

hasRootAccess(hostname)
RAM cost:

0.05 GB

Arguments:
  • hostname (string) – Hostname of the target server.
Returns:

true if you have root access on the target server.

Example:

if (hasRootAccess("foodnstuff") == false) {
    nuke("foodnstuff");
}