Files
bitburner-src/markdown/bitburner.darknet.connecttosession.md
Michael Ficocelli 6073964768 DARKNET: Darkweb Expansion Project & Bitnode (#2139)
This is BN15. It is a really big change; see the PR for all the details.
2026-02-03 03:40:36 -08:00

1.4 KiB

Home > bitburner > Darknet > connectToSession

Darknet.connectToSession() method

Attempts to connect to a target darkweb server that you have previously authenticated on. Unlike authenticate, connectToSession can be used to get a session on servers at any distance.

If successful, grants the script a session, allowing it to scp() files from that target. It also allows starting scripts with exec() on that target, if the target is directly connected to the server that the script is running on, or has a backdoor or stasis link.

If unsuccessful, more detail may be able to be gathered by using heartbleed() to look at the resulting logs on the server.

Signature:

connectToSession(host: string, password: string): DarknetResult;

Parameters

Parameter

Type

Description

host

string

Hostname/IP of the target server to connect to existing session

password

string

The server's password, to verify the session

Returns:

DarknetResult

A DarknetResult object

Remarks

RAM cost: 0.05 GB