mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-15 04:03:50 +01:00
17 lines
405 B
ReStructuredText
17 lines
405 B
ReStructuredText
hasRootAccess() Netscript Function
|
|
==================================
|
|
|
|
.. js:function:: hasRootAccess(hostname)
|
|
|
|
:RAM cost: 0.05 GB
|
|
:param string hostname: Hostname of the target server.
|
|
:returns: ``true`` if you have root access on the target server.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
if (hasRootAccess("foodnstuff") == false) {
|
|
nuke("foodnstuff");
|
|
}
|