Interface Server

A server. Not all servers have all of these properties - optional properties are missing on certain servers.

interface Server {
    backdoorInstalled?: boolean;
    baseDifficulty?: number;
    cpuCores: number;
    ftpPortOpen: boolean;
    hackDifficulty?: number;
    hasAdminRights: boolean;
    hostname: string;
    httpPortOpen: boolean;
    ip: string;
    isConnectedTo: boolean;
    maxRam: number;
    minDifficulty?: number;
    moneyAvailable?: number;
    moneyMax?: number;
    numOpenPortsRequired?: number;
    openPortCount?: number;
    organizationName: string;
    purchasedByPlayer: boolean;
    ramUsed: number;
    requiredHackingSkill?: number;
    serverGrowth?: number;
    smtpPortOpen: boolean;
    sqlPortOpen: boolean;
    sshPortOpen: boolean;
}

Properties

backdoorInstalled?: boolean

Flag indicating whether this server has a backdoor installed by a player

baseDifficulty?: number

Server's initial server security level at creation.

cpuCores: number

How many CPU cores this server has. Affects magnitude of grow and weaken ran from this server.

ftpPortOpen: boolean

Whether or not 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

Whether or not the 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, 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

Growth effectiveness statistic. Higher values produce more growth with ns.grow()

smtpPortOpen: boolean

Whether or not the SMTP Port is open

sqlPortOpen: boolean

Whether or not the SQL Port is open

sshPortOpen: boolean

Whether or not the SSH Port is open