DNET: Update documentation (#2483)

This commit is contained in:
Michael Ficocelli
2026-02-07 22:25:56 -05:00
committed by GitHub
parent e649adfef4
commit 425bff8217
25 changed files with 611 additions and 71 deletions

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [DarknetInstability](./bitburner.darknetinstability.md) &gt; [authenticationDurationMultiplier](./bitburner.darknetinstability.authenticationdurationmultiplier.md)
## DarknetInstability.authenticationDurationMultiplier property
The increase in time that authentication takes, as a decimal
**Signature:**
```typescript
authenticationDurationMultiplier: number;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [DarknetInstability](./bitburner.darknetinstability.md) &gt; [authenticationTimeoutChance](./bitburner.darknetinstability.authenticationtimeoutchance.md)
## DarknetInstability.authenticationTimeoutChance property
The chance that authentication will time out instead of resolving, as a decimal
**Signature:**
```typescript
authenticationTimeoutChance: number;
```

View File

@@ -2,15 +2,76 @@
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [DarknetInstability](./bitburner.darknetinstability.md)
## DarknetInstability type
## DarknetInstability interface
Instability of the darknet caused by excessive backdoor-ing of servers.
**Signature:**
```typescript
type DarknetInstability = {
authenticationDurationMultiplier: number;
authenticationTimeoutChance: number;
};
interface DarknetInstability
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[authenticationDurationMultiplier](./bitburner.darknetinstability.authenticationdurationmultiplier.md)
</td><td>
</td><td>
number
</td><td>
The increase in time that authentication takes, as a decimal
</td></tr>
<tr><td>
[authenticationTimeoutChance](./bitburner.darknetinstability.authenticationtimeoutchance.md)
</td><td>
</td><td>
number
</td><td>
The chance that authentication will time out instead of resolving, as a decimal
</td></tr>
</tbody></table>

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HeartbleedOptions](./bitburner.heartbleedoptions.md) &gt; [additionalMsec](./bitburner.heartbleedoptions.additionalmsec.md)
## HeartbleedOptions.additionalMsec property
The number of additional milliseconds to add to the run time of the heartbleed request. Default is 0. Must be a non-negative integer.
**Signature:**
```typescript
additionalMsec?: number;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HeartbleedOptions](./bitburner.heartbleedoptions.md) &gt; [logsToCapture](./bitburner.heartbleedoptions.logstocapture.md)
## HeartbleedOptions.logsToCapture property
The number of log lines to remove from the server. Default is 1. Must be a positive integer.
**Signature:**
```typescript
logsToCapture?: number;
```

View File

@@ -2,16 +2,95 @@
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HeartbleedOptions](./bitburner.heartbleedoptions.md)
## HeartbleedOptions type
## HeartbleedOptions interface
Options to change the behavior of [heartbleed](./bitburner.darknet.heartbleed.md) API.
**Signature:**
```typescript
type HeartbleedOptions = {
peek?: boolean;
logsToCapture?: number;
additionalMsec?: number;
};
interface HeartbleedOptions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[additionalMsec?](./bitburner.heartbleedoptions.additionalmsec.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ The number of additional milliseconds to add to the run time of the heartbleed request. Default is 0. Must be a non-negative integer.
</td></tr>
<tr><td>
[logsToCapture?](./bitburner.heartbleedoptions.logstocapture.md)
</td><td>
</td><td>
number
</td><td>
_(Optional)_ The number of log lines to remove from the server. Default is 1. Must be a positive integer.
</td></tr>
<tr><td>
[peek?](./bitburner.heartbleedoptions.peek.md)
</td><td>
</td><td>
boolean
</td><td>
_(Optional)_ If true, looks at the most recent log lines but does not remove them. Default is false.
</td></tr>
</tbody></table>

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [HeartbleedOptions](./bitburner.heartbleedoptions.md) &gt; [peek](./bitburner.heartbleedoptions.peek.md)
## HeartbleedOptions.peek property
If true, looks at the most recent log lines but does not remove them. Default is false.
**Signature:**
```typescript
peek?: boolean;
```

View File

@@ -368,6 +368,17 @@ Darknet API
Darknet formulas
</td></tr>
<tr><td>
[DarknetInstability](./bitburner.darknetinstability.md)
</td><td>
Instability of the darknet caused by excessive backdoor-ing of servers.
</td></tr>
<tr><td>
@@ -790,6 +801,17 @@ Hacknet server related constants
Hacknet Server formulas
</td></tr>
<tr><td>
[HeartbleedOptions](./bitburner.heartbleedoptions.md)
</td><td>
Options to change the behavior of [heartbleed](./bitburner.darknet.heartbleed.md) API.
</td></tr>
<tr><td>
@@ -1185,6 +1207,17 @@ Various info about resets
A server. Not all servers have all of these properties - optional properties are missing on certain servers.
</td></tr>
<tr><td>
[ServerAuthDetails](./bitburner.serverauthdetails.md)
</td><td>
Details about a server's authentication schema
</td></tr>
<tr><td>
@@ -1803,17 +1836,6 @@ Names of all companies
</td></tr>
<tr><td>
[DarknetInstability](./bitburner.darknetinstability.md)
</td><td>
Instability of the darknet caused by excessive backdoor-ing of servers.
</td></tr>
<tr><td>
@@ -1999,17 +2021,6 @@ Locations of gym
</td></tr>
<tr><td>
[HeartbleedOptions](./bitburner.heartbleedoptions.md)
</td><td>
Options to change the behavior of [heartbleed](./bitburner.darknet.heartbleed.md) API.
</td></tr>
<tr><td>
@@ -2165,17 +2176,6 @@ Use React.createElement to make the ReactElement type, see [creating an element
</td></tr>
<tr><td>
[ServerAuthDetails](./bitburner.serverauthdetails.md)
</td><td>
Details about a server's authentication schema
</td></tr>
<tr><td>

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [data](./bitburner.serverauthdetails.data.md)
## ServerAuthDetails.data property
Data from the passwordHint, if any.
**Signature:**
```typescript
data: string;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [hasSession](./bitburner.serverauthdetails.hassession.md)
## ServerAuthDetails.hasSession property
True if the current script has authenticated to this server with the right password using authenticate() or connectToSesssion()
**Signature:**
```typescript
hasSession: boolean;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [isConnectedToCurrentServer](./bitburner.serverauthdetails.isconnectedtocurrentserver.md)
## ServerAuthDetails.isConnectedToCurrentServer property
True if the server is directly connected to the current server
**Signature:**
```typescript
isConnectedToCurrentServer: boolean;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [logTrafficInterval](./bitburner.serverauthdetails.logtrafficinterval.md)
## ServerAuthDetails.logTrafficInterval property
The frequency (in seconds) of the server adding its own messages to its logs, visible with heartBleed().
**Signature:**
```typescript
logTrafficInterval: number;
```

View File

@@ -2,21 +2,190 @@
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md)
## ServerAuthDetails type
## ServerAuthDetails interface
Details about a server's authentication schema
**Signature:**
```typescript
type ServerAuthDetails = {
isConnectedToCurrentServer: boolean;
hasSession: boolean;
modelId: string;
passwordHint: string;
data: string;
logTrafficInterval: number;
passwordLength: number;
passwordFormat: "numeric" | "alphabetic" | "alphanumeric" | "ASCII" | "unicode";
};
interface ServerAuthDetails
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[data](./bitburner.serverauthdetails.data.md)
</td><td>
</td><td>
string
</td><td>
Data from the passwordHint, if any.
</td></tr>
<tr><td>
[hasSession](./bitburner.serverauthdetails.hassession.md)
</td><td>
</td><td>
boolean
</td><td>
True if the current script has authenticated to this server with the right password using authenticate() or connectToSesssion()
</td></tr>
<tr><td>
[isConnectedToCurrentServer](./bitburner.serverauthdetails.isconnectedtocurrentserver.md)
</td><td>
</td><td>
boolean
</td><td>
True if the server is directly connected to the current server
</td></tr>
<tr><td>
[logTrafficInterval](./bitburner.serverauthdetails.logtrafficinterval.md)
</td><td>
</td><td>
number
</td><td>
The frequency (in seconds) of the server adding its own messages to its logs, visible with heartBleed().
</td></tr>
<tr><td>
[modelId](./bitburner.serverauthdetails.modelid.md)
</td><td>
</td><td>
string
</td><td>
The model ID of the server. Similar models share vulnerabilities.
</td></tr>
<tr><td>
[passwordFormat](./bitburner.serverauthdetails.passwordformat.md)
</td><td>
</td><td>
"numeric" \| "alphabetic" \| "alphanumeric" \| "ASCII" \| "unicode"
</td><td>
The character set used in the password
</td></tr>
<tr><td>
[passwordHint](./bitburner.serverauthdetails.passwordhint.md)
</td><td>
</td><td>
string
</td><td>
Static password reminder text set for this server.
</td></tr>
<tr><td>
[passwordLength](./bitburner.serverauthdetails.passwordlength.md)
</td><td>
</td><td>
number
</td><td>
The number of characters in the password
</td></tr>
</tbody></table>

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [modelId](./bitburner.serverauthdetails.modelid.md)
## ServerAuthDetails.modelId property
The model ID of the server. Similar models share vulnerabilities.
**Signature:**
```typescript
modelId: string;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [passwordFormat](./bitburner.serverauthdetails.passwordformat.md)
## ServerAuthDetails.passwordFormat property
The character set used in the password
**Signature:**
```typescript
passwordFormat: "numeric" | "alphabetic" | "alphanumeric" | "ASCII" | "unicode";
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [passwordHint](./bitburner.serverauthdetails.passwordhint.md)
## ServerAuthDetails.passwordHint property
Static password reminder text set for this server.
**Signature:**
```typescript
passwordHint: string;
```

View File

@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [ServerAuthDetails](./bitburner.serverauthdetails.md) &gt; [passwordLength](./bitburner.serverauthdetails.passwordlength.md)
## ServerAuthDetails.passwordLength property
The number of characters in the password
**Signature:**
```typescript
passwordLength: number;
```

View File

@@ -547,7 +547,10 @@ export function initBitNodes() {
<>
This Source-File grants the following benefits:
<ul>
<li>Level 1: Permanently start with the TOR router and {CompletedProgramName.darkscape}</li>
<li>
Level 1: Permanently start with the TOR router and {CompletedProgramName.darkscape}, and unlock the full
dark web on all Bitnodes.
</li>
<li>
Level 2: Your charisma level increases job salary and rep gain. Also increases authentication speed by 20%
</li>

View File

@@ -33,6 +33,7 @@ Some BitNodes unlock new mechanics, while others improve or change original mech
- BitNode 11: It gives some rewards, but they are not very interesting.
- BitNode 12: Grant free NeuroFlux Governor (NFG) based on the Source-File level.
- BitNode 14: Enhance IPvGO.
- Bitnode 15: Enhanced darknet.
Some mechanics synergize well with other mechanics. For example, in order to create a gang outside of BitNode 2, you need to "farm karma" (more about this later), and Sleeves can help you do it faster.
@@ -192,6 +193,18 @@ The last reward is pretty interesting. If you can consistently win several games
This BitNode's multipliers are fairly harsh, but IPvGO's multipliers are buffed significantly. If you use IPvGO, even a slightly improved version of the tutorial script will help you complete this BitNode without much trouble.
## Bitnode 15
This bitnode increases the size and depth of the dark net. This increases the reward potential from the darknet in general. Since there are more servers, there is more opportunities for reward caches, and more ram to run phishingAttack for money and promoteStock for boosting a stock with a good forecast. The Source-File's rewards:
- Permanently unlock the TOR router and DarkscapeNavigator.exe, and unlock the full dark web on all Bitnodes.
- Your charisma level increases job salary and rep gain; increased authentication speed
- Your charisma level increases faction work rep gain; increased xp and money gained from .caches.
The first Source-File also allows the use of the dark net to get The Red Pill from the final lab in all Bitnodes (except for BN8), which in some cases may be quicker than unlocking it via Daedalus.
However, the complexity of dealing with the deep 'net, and the number of different puzzles to solve, make BN15 not a simple bitnode to approach. Before tackling BN15, you will want to experiment with the basic version in other nodes to get a feel for it.
# Order advice
## The first choice
@@ -221,6 +234,8 @@ BitNode 14 enhances IPvGO. IPvGO is _not_ locked behind this BitNode. It's avail
BitNode 9 and BitNode 13 unlock HackNet server and Stanek's Gift, respectively. They are powerful mechanics that buff other mechanics, but these BitNodes are extremely hard. You should prepare carefully before entering them.
Bitnode 15 enhances the dark net. Darknet is _not_ locked behind this BitNode. It's available at the start of the game. You can unlock it by buying the DarkscapeNavigator.exe from the terminal once you have a TOR router. If you haven't experimented with the mechanic, you should do so before entering BN15. You _can_ complete BN15 with a simple script that uses dnet.packetCapture to get passwords and copies itself around, but it will be much slower than going through and solving a good fraction of the authentication puzzles.
## Challenging BitNodes
It's hard to recommend the priority of these BitNodes. They offer unique challenges. Some people can tackle them as early BitNodes without any problems. Some people complete them at the end, for the sake of completion. Some people despise and never touch them.

View File

@@ -62,7 +62,11 @@ BN13 introduces [Stanek's Gift](stanek.md), a powerful augmentation that can pro
These bonuses are versatile but not enough to offset the challenge of the BitNode itself.
BN14 is a relatively new BitNode focused on [IPvGO](../programming/go_algorithms.md).
Automating the mechanic is challenging but it provides a wide variety of bonuses.
Automating the mechanic is challenging, but it provides a wide variety of bonuses.
BN15 expands on the darknet mechanic unlocked via the DarkscapeNavigator.exe program.
It encourages solving a number of practical problems (e.g. passing data around between scripts, handling servers disappearing) as well as solving many small programming puzzles to get servers' passwords. The deeper levels of the darknet have significantly more complex puzzles.
It provides a variety of useful bonuses.
## Save these for later

View File

@@ -251,3 +251,20 @@ and increases the reputation converted to favor for winning two games in a row t
- Level 1: 1000 rep to favor
- Level 2: 1500 rep to favor
- Level 3: 2000 rep to favor
### Bitnode 15: The Secrets of the Dark Net
Delving into the uncharted and secretive parts of the internet comes with the promise of freedom from oppressive authority and surveillance. Leaving stability behind and turning to the dark web comes with risks... but also rewards. Unlike the traditional network of servers, the "dark" net is a constantly shifting, complex, unreliable place
where servers can move or disappear at any moment. Long-distance communication is often impossible, requiring scripts to be self-sufficient and durable, and spread themselves to stay alive.
If you can take advantage of the darknet servers' weak passwords and leaky logs, you will be able to gain access to the deepest parts of the darknet and its secrets. In this Bitnode, the Daedalus faction has not yet found and monopolized the fabled Red Pill augmentation.
Legends say it can be found somewhere, out there in the dark...
Destroying this BitNode will give you Source-File 15, or if you already have this Source-File, it will upgrade
its level up to a maximum of 3.
This Source-File grants the following benefits:
- Level 1: Permanently start with the TOR router and DarkscapeNavigator.exe, and unlock the full dark web on all Bitnodes.
- Level 2: Your charisma level increases job salary and rep gain. Also increases authentication speed by 20%
- Level 3: Your charisma level increases faction work rep gain. Also increases the xp and money gained from .cache files by 50%.

View File

@@ -448,6 +448,8 @@ import nsDoc_bitburner_darknetformulas_getauthenticatetime_md from "../../markdo
import nsDoc_bitburner_darknetformulas_getexpectedramblockremoved_md from "../../markdown/bitburner.darknetformulas.getexpectedramblockremoved.md?raw";
import nsDoc_bitburner_darknetformulas_getheartbleedtime_md from "../../markdown/bitburner.darknetformulas.getheartbleedtime.md?raw";
import nsDoc_bitburner_darknetformulas_md from "../../markdown/bitburner.darknetformulas.md?raw";
import nsDoc_bitburner_darknetinstability_authenticationdurationmultiplier_md from "../../markdown/bitburner.darknetinstability.authenticationdurationmultiplier.md?raw";
import nsDoc_bitburner_darknetinstability_authenticationtimeoutchance_md from "../../markdown/bitburner.darknetinstability.authenticationtimeoutchance.md?raw";
import nsDoc_bitburner_darknetinstability_md from "../../markdown/bitburner.darknetinstability.md?raw";
import nsDoc_bitburner_darknetresponsecode_md from "../../markdown/bitburner.darknetresponsecode.md?raw";
import nsDoc_bitburner_darknetresponsecodetype_md from "../../markdown/bitburner.darknetresponsecodetype.md?raw";
@@ -831,7 +833,10 @@ import nsDoc_bitburner_hacknetserversformulas_hashupgradecost_md from "../../mar
import nsDoc_bitburner_hacknetserversformulas_levelupgradecost_md from "../../markdown/bitburner.hacknetserversformulas.levelupgradecost.md?raw";
import nsDoc_bitburner_hacknetserversformulas_md from "../../markdown/bitburner.hacknetserversformulas.md?raw";
import nsDoc_bitburner_hacknetserversformulas_ramupgradecost_md from "../../markdown/bitburner.hacknetserversformulas.ramupgradecost.md?raw";
import nsDoc_bitburner_heartbleedoptions_additionalmsec_md from "../../markdown/bitburner.heartbleedoptions.additionalmsec.md?raw";
import nsDoc_bitburner_heartbleedoptions_logstocapture_md from "../../markdown/bitburner.heartbleedoptions.logstocapture.md?raw";
import nsDoc_bitburner_heartbleedoptions_md from "../../markdown/bitburner.heartbleedoptions.md?raw";
import nsDoc_bitburner_heartbleedoptions_peek_md from "../../markdown/bitburner.heartbleedoptions.peek.md?raw";
import nsDoc_bitburner_hostreturnoptions_md from "../../markdown/bitburner.hostreturnoptions.md?raw";
import nsDoc_bitburner_hostreturnoptions_returnbyip_md from "../../markdown/bitburner.hostreturnoptions.returnbyip.md?raw";
import nsDoc_bitburner_hp_current_md from "../../markdown/bitburner.hp.current.md?raw";
@@ -1261,7 +1266,15 @@ import nsDoc_bitburner_server_servergrowth_md from "../../markdown/bitburner.ser
import nsDoc_bitburner_server_smtpportopen_md from "../../markdown/bitburner.server.smtpportopen.md?raw";
import nsDoc_bitburner_server_sqlportopen_md from "../../markdown/bitburner.server.sqlportopen.md?raw";
import nsDoc_bitburner_server_sshportopen_md from "../../markdown/bitburner.server.sshportopen.md?raw";
import nsDoc_bitburner_serverauthdetails_data_md from "../../markdown/bitburner.serverauthdetails.data.md?raw";
import nsDoc_bitburner_serverauthdetails_hassession_md from "../../markdown/bitburner.serverauthdetails.hassession.md?raw";
import nsDoc_bitburner_serverauthdetails_isconnectedtocurrentserver_md from "../../markdown/bitburner.serverauthdetails.isconnectedtocurrentserver.md?raw";
import nsDoc_bitburner_serverauthdetails_logtrafficinterval_md from "../../markdown/bitburner.serverauthdetails.logtrafficinterval.md?raw";
import nsDoc_bitburner_serverauthdetails_md from "../../markdown/bitburner.serverauthdetails.md?raw";
import nsDoc_bitburner_serverauthdetails_modelid_md from "../../markdown/bitburner.serverauthdetails.modelid.md?raw";
import nsDoc_bitburner_serverauthdetails_passwordformat_md from "../../markdown/bitburner.serverauthdetails.passwordformat.md?raw";
import nsDoc_bitburner_serverauthdetails_passwordhint_md from "../../markdown/bitburner.serverauthdetails.passwordhint.md?raw";
import nsDoc_bitburner_serverauthdetails_passwordlength_md from "../../markdown/bitburner.serverauthdetails.passwordlength.md?raw";
import nsDoc_bitburner_simpleopponentstats_md from "../../markdown/bitburner.simpleopponentstats.md?raw";
import nsDoc_bitburner_singularity_applytocompany_md from "../../markdown/bitburner.singularity.applytocompany.md?raw";
import nsDoc_bitburner_singularity_b1tflum3_md from "../../markdown/bitburner.singularity.b1tflum3.md?raw";
@@ -2024,6 +2037,8 @@ AllPages["nsDoc/bitburner.darknetformulas.getauthenticatetime.md"] = nsDoc_bitbu
AllPages["nsDoc/bitburner.darknetformulas.getexpectedramblockremoved.md"] = nsDoc_bitburner_darknetformulas_getexpectedramblockremoved_md;
AllPages["nsDoc/bitburner.darknetformulas.getheartbleedtime.md"] = nsDoc_bitburner_darknetformulas_getheartbleedtime_md;
AllPages["nsDoc/bitburner.darknetformulas.md"] = nsDoc_bitburner_darknetformulas_md;
AllPages["nsDoc/bitburner.darknetinstability.authenticationdurationmultiplier.md"] = nsDoc_bitburner_darknetinstability_authenticationdurationmultiplier_md;
AllPages["nsDoc/bitburner.darknetinstability.authenticationtimeoutchance.md"] = nsDoc_bitburner_darknetinstability_authenticationtimeoutchance_md;
AllPages["nsDoc/bitburner.darknetinstability.md"] = nsDoc_bitburner_darknetinstability_md;
AllPages["nsDoc/bitburner.darknetresponsecode.md"] = nsDoc_bitburner_darknetresponsecode_md;
AllPages["nsDoc/bitburner.darknetresponsecodetype.md"] = nsDoc_bitburner_darknetresponsecodetype_md;
@@ -2407,7 +2422,10 @@ AllPages["nsDoc/bitburner.hacknetserversformulas.hashupgradecost.md"] = nsDoc_bi
AllPages["nsDoc/bitburner.hacknetserversformulas.levelupgradecost.md"] = nsDoc_bitburner_hacknetserversformulas_levelupgradecost_md;
AllPages["nsDoc/bitburner.hacknetserversformulas.md"] = nsDoc_bitburner_hacknetserversformulas_md;
AllPages["nsDoc/bitburner.hacknetserversformulas.ramupgradecost.md"] = nsDoc_bitburner_hacknetserversformulas_ramupgradecost_md;
AllPages["nsDoc/bitburner.heartbleedoptions.additionalmsec.md"] = nsDoc_bitburner_heartbleedoptions_additionalmsec_md;
AllPages["nsDoc/bitburner.heartbleedoptions.logstocapture.md"] = nsDoc_bitburner_heartbleedoptions_logstocapture_md;
AllPages["nsDoc/bitburner.heartbleedoptions.md"] = nsDoc_bitburner_heartbleedoptions_md;
AllPages["nsDoc/bitburner.heartbleedoptions.peek.md"] = nsDoc_bitburner_heartbleedoptions_peek_md;
AllPages["nsDoc/bitburner.hostreturnoptions.md"] = nsDoc_bitburner_hostreturnoptions_md;
AllPages["nsDoc/bitburner.hostreturnoptions.returnbyip.md"] = nsDoc_bitburner_hostreturnoptions_returnbyip_md;
AllPages["nsDoc/bitburner.hp.current.md"] = nsDoc_bitburner_hp_current_md;
@@ -2837,7 +2855,15 @@ AllPages["nsDoc/bitburner.server.servergrowth.md"] = nsDoc_bitburner_server_serv
AllPages["nsDoc/bitburner.server.smtpportopen.md"] = nsDoc_bitburner_server_smtpportopen_md;
AllPages["nsDoc/bitburner.server.sqlportopen.md"] = nsDoc_bitburner_server_sqlportopen_md;
AllPages["nsDoc/bitburner.server.sshportopen.md"] = nsDoc_bitburner_server_sshportopen_md;
AllPages["nsDoc/bitburner.serverauthdetails.data.md"] = nsDoc_bitburner_serverauthdetails_data_md;
AllPages["nsDoc/bitburner.serverauthdetails.hassession.md"] = nsDoc_bitburner_serverauthdetails_hassession_md;
AllPages["nsDoc/bitburner.serverauthdetails.isconnectedtocurrentserver.md"] = nsDoc_bitburner_serverauthdetails_isconnectedtocurrentserver_md;
AllPages["nsDoc/bitburner.serverauthdetails.logtrafficinterval.md"] = nsDoc_bitburner_serverauthdetails_logtrafficinterval_md;
AllPages["nsDoc/bitburner.serverauthdetails.md"] = nsDoc_bitburner_serverauthdetails_md;
AllPages["nsDoc/bitburner.serverauthdetails.modelid.md"] = nsDoc_bitburner_serverauthdetails_modelid_md;
AllPages["nsDoc/bitburner.serverauthdetails.passwordformat.md"] = nsDoc_bitburner_serverauthdetails_passwordformat_md;
AllPages["nsDoc/bitburner.serverauthdetails.passwordhint.md"] = nsDoc_bitburner_serverauthdetails_passwordhint_md;
AllPages["nsDoc/bitburner.serverauthdetails.passwordlength.md"] = nsDoc_bitburner_serverauthdetails_passwordlength_md;
AllPages["nsDoc/bitburner.simpleopponentstats.md"] = nsDoc_bitburner_simpleopponentstats_md;
AllPages["nsDoc/bitburner.singularity.applytocompany.md"] = nsDoc_bitburner_singularity_applytocompany_md;
AllPages["nsDoc/bitburner.singularity.b1tflum3.md"] = nsDoc_bitburner_singularity_b1tflum3_md;

View File

@@ -809,7 +809,10 @@ export const ns: InternalAPI<NSFull> = {
continue;
}
if (!path.endsWith(".lit")) {
throw helpers.errorMessage(ctx, "Only works for script, text, and .lit files");
throw helpers.errorMessage(
ctx,
`Cannot transfer ${path}: scp only can be used with script, text, and .lit files`,
);
}
lits.push(path);
}

View File

@@ -73,12 +73,6 @@ function heartbleedOptions(ctx: NetscriptContext, opts: unknown): CompleteHeartb
};
const peek = helpers.boolean(ctx, "options.peek", options.peek);
const logsToCapture = helpers.positiveInteger(ctx, "options.logsToCapture", options.logsToCapture);
if (logsToCapture > 8) {
throw helpers.errorMessage(
ctx,
`Invalid arguments: "options.logsToCapture" (${options.logsToCapture}) must be smaller than or equal to 8`,
);
}
const additionalMsec = helpers.integer(ctx, "options.additionalMsec", options.additionalMsec);
if (additionalMsec < 0) {
throw helpers.errorMessage(

View File

@@ -4396,7 +4396,7 @@ export type CacheResult = {
* Details about a server's authentication schema
* @public
*/
type ServerAuthDetails = {
interface ServerAuthDetails {
/** True if the server is directly connected to the current server */
isConnectedToCurrentServer: boolean;
/** True if the current script has authenticated to this server with the right password using authenticate() or connectToSesssion() */
@@ -4413,31 +4413,31 @@ type ServerAuthDetails = {
passwordLength: number;
/** The character set used in the password */
passwordFormat: "numeric" | "alphabetic" | "alphanumeric" | "ASCII" | "unicode";
};
}
/**
* Options to change the behavior of {@link Darknet.heartbleed | heartbleed} API.
* @public
*/
type HeartbleedOptions = {
interface HeartbleedOptions {
/** If true, looks at the most recent log lines but does not remove them. Default is false. */
peek?: boolean;
/** The number of log lines to remove from the server, up to a max of 8. Default is 1. Must be a positive integer. */
/** The number of log lines to remove from the server. Default is 1. Must be a positive integer. */
logsToCapture?: number;
/** The number of additional milliseconds to add to the run time of the heartbleed request. Default is 0. Must be a non-negative integer. */
additionalMsec?: number;
};
}
/**
* Instability of the darknet caused by excessive backdoor-ing of servers.
* @public
*/
type DarknetInstability = {
interface DarknetInstability {
/** The increase in time that authentication takes, as a decimal */
authenticationDurationMultiplier: number;
/** The chance that authentication will time out instead of resolving, as a decimal */
authenticationTimeoutChance: number;
};
}
/**
* Darknet API