mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
44 lines
1.0 KiB
Markdown
44 lines
1.0 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getDarkwebPrograms](./bitburner.singularity.getdarkwebprograms.md)
|
||
|
|
||
|
## Singularity.getDarkwebPrograms() method
|
||
|
|
||
|
Get a list of programs offered on the dark web.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
getDarkwebPrograms(): string[];
|
||
|
```
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
string\[\]
|
||
|
|
||
|
- a list of programs available for purchase on the dark web, or \[\] if Tor has not been purchased
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 1 GB \* 16/4/1
|
||
|
|
||
|
This function allows the player to get a list of programs available for purchase on the dark web. Players MUST have purchased Tor to get the list of programs available. If Tor has not been purchased yet, this function will return an empty list.
|
||
|
|
||
|
## Example 1
|
||
|
|
||
|
|
||
|
```ts
|
||
|
// NS1
|
||
|
getDarkwebProgramsAvailable();
|
||
|
// returns ['BruteSSH.exe', 'FTPCrack.exe'...etc]
|
||
|
```
|
||
|
|
||
|
## Example 2
|
||
|
|
||
|
|
||
|
```ts
|
||
|
// NS2
|
||
|
ns.getDarkwebProgramsAvailable();
|
||
|
// returns ['BruteSSH.exe', 'FTPCrack.exe'...etc]
|
||
|
```
|
||
|
|