Files
bitburner-src/markdown/bitburner.darknet.authenticate.md
Michael Ficocelli 26db9f2955 DNET: More fixes and feedback (#2489)
* Add some re-rendering improvements to avoid the canvas and visual servers getting desynched

* removed underlevelled nerf to low-level servers; improved charisma level docs

* Remove offscreen dynamic culling

* PR feedback; add cache file names to tooltip

* Ensure stasis link servers get loaded properly; ensure darkweb has neighbors to prevent unit tests from failing; remove extra optional chaining accessors
2026-02-13 17:23:24 -08:00

1.9 KiB

Home > bitburner > Darknet > authenticate

Darknet.authenticate() method

Sends a network request to try to authenticate on a darkweb server. The target server must be directly connected to the server that the script is running on. The speed of authentication scales with the number of threads used.

If successful, grants the script a session, allowing it to exec() scripts on that server, or scp() files to it. (scp() *from* the server is always allowed.)

Note that the charisma level on a server is not a requirement for authentication, but authentication takes longer if the player's charisma is below the server's charisma level.

Signature:

authenticate(host: string, password: string, additionalMsec?: number): Promise<DarknetResult & { data?: any }>;

Parameters

Parameter

Type

Description

host

string

Hostname/IP of the target server (connected to the current server) to try a password.

password

string

Password to attempt to authenticate with.

additionalMsec

number

(Optional) Optional. The number of additional milliseconds to add to the run time of the authentication request. Default is 0.

Returns:

Promise<DarknetResult & { data?: any }>

A promise that resolves to a DarknetResult object. The resolved object may contain an optional property. The type of this property is intentionaly undocumented. You are supposed to experiment and discover the content of this property.

Remarks

RAM cost: 0.6 GB