mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-04 21:43:48 +01:00
16 lines
424 B
ReStructuredText
16 lines
424 B
ReStructuredText
hasRootAccess() Netscript Function
|
|
==================================
|
|
|
|
.. js:function:: hasRootAccess(hostname/ip)
|
|
|
|
:param string hostname/ip: Hostname or IP of the target server
|
|
:RAM cost: 0.05 GB
|
|
|
|
Returns a boolean indicating whether or not the player has root access to the specified target server.
|
|
|
|
Example::
|
|
|
|
if (hasRootAccess("foodnstuff") == false) {
|
|
nuke("foodnstuff");
|
|
}
|