mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
3.3 KiB
3.3 KiB
Server interface
A single server.
Signature:
interface Server
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
backdoorInstalled | boolean | Flag indicating whether this server has a backdoor installed by a player | |
baseDifficulty | number | Initial server security level (i.e. security level when the server was created) | |
cpuCores | number | How many CPU cores this server has. Maximum of 8. Affects magnitude of grow and weaken. | |
ftpPortOpen | boolean | Flag indicating whether the FTP port is open | |
hackDifficulty | number | Server Security Level | |
hasAdminRights | boolean | Flag indicating whether player has admin/root access to this server | |
hostname | string | Hostname. Must be unique | |
httpPortOpen | boolean | Flag indicating whether HTTP Port is open | |
ip | string | IP Address. Must be unique | |
isConnectedTo | boolean | Flag indicating whether player is currently connected to this server | |
maxRam | number | RAM (GB) available on this server | |
minDifficulty | number | Minimum server security level that this server can be weakened to | |
moneyAvailable | number | How much money currently resides on the server and can be hacked | |
moneyMax | number | Maximum amount of money that this server can hold | |
numOpenPortsRequired | number | Number of open ports required in order to gain admin/root access | |
openPortCount | number | How many ports are currently opened on the server | |
organizationName | string | Name of company/faction/etc. that this server belongs to. Optional, not applicable to all Servers | |
purchasedByPlayer | boolean | Flag indicating whether this is a purchased server | |
ramUsed | number | RAM (GB) used. i.e. unavailable RAM | |
requiredHackingSkill | number | Hacking level required to hack this server | |
serverGrowth | number | Parameter that affects how effectively this server's money can be increased using the grow() Netscript function | |
smtpPortOpen | boolean | Flag indicating whether SMTP Port is open | |
sqlPortOpen | boolean | Flag indicating whether SQL Port is open | |
sshPortOpen | boolean | Flag indicating whether the SSH Port is open |