bitburner/README.md

227 lines
6.2 KiB
Markdown
Raw Normal View History

2022-02-04 18:48:08 -05:00
# BitBurner - Scripts
2022-02-04 11:49:05 -05:00
These scripts are for playing the [open source](https://github.com/danielyxie/bitburner) game [BitBurner](https://danielyxie.github.io/bitburner/)
2022-02-04 09:47:21 -05:00
2022-02-04 11:49:05 -05:00
## Table of Contents
2022-03-09 14:06:14 -05:00
- [BitBurner - Scripts](#bitburner-scripts)
- [Table of Contents](#table-of-contents)
- [Quick Start](#quick-start)
- [Scripts](#scripts)
2022-03-11 07:05:34 -05:00
- [connect.js](#connectjs)
2022-03-09 14:06:14 -05:00
- [crawler.js](#crawlerjs)
- [miner.js](#minerjs)
- [network-graph.js](#network-graphjs)
- [node-manager.js](#node-managerjs)
- [rootkit.js](#rootkitjs)
- [update.js](#updatejs)
2022-03-09 15:58:15 -05:00
- [vanguard.js](#vanguardjs)
2022-02-04 11:49:05 -05:00
## Quick Start
2022-03-09 14:58:09 -05:00
2022-02-04 11:49:05 -05:00
```bash
2022-03-09 14:58:09 -05:00
# Download the update script in-game
2022-02-10 17:30:11 -05:00
wget https://gitlab.zakscode.com/ztimson/BitBurner/-/raw/develop/scripts/update.js scripts/update.js
2022-03-09 14:58:09 -05:00
# Run the update script (Repeat this to pull this repository in the future)
2022-02-10 17:30:11 -05:00
run scripts/update.js
# Start the node manager with 8 nodes
2022-02-04 11:49:05 -05:00
run scripts/node-manager.js 8
2022-03-09 15:00:54 -05:00
# Chain the crawler, rootkit & miner to hack everything on the network
alias hackAll="run scripts/crawler.js /scripts/rootkit.js {{TARGET}} /scripts/miner.js"
hackAll
2022-03-11 07:05:34 -05:00
# Identify & install a backdoor on CSEC
run scripts/network-graph.js -f CSEC
run scripts/rootkit.js CSEC
run scripts/connect.js CSEC
backdoor
2022-02-04 11:49:05 -05:00
```
2022-03-09 14:58:09 -05:00
Learn more about the [availible scripts](#scripts) bellow or pass the `--help` flag to any of the included scripts in-game.
2022-02-04 11:49:05 -05:00
## Scripts
2022-03-11 07:05:34 -05:00
### [connect.js](./scripts/connect.js)
**RAM:** 1.85 GB
Connect to a device on a different network.
```
[home ~/]> run /scripts/connect.js --help
Running script with 1 thread(s), pid 1 and args: ["--help"].
/scripts/connect.js:
Connect to a device on a different network.
Usage: run connect.js DEVICE
run connect.js --help
DEVICE Device to connect to
Options:
-h --help Display this help message
```
2022-03-09 14:06:14 -05:00
### [crawler.js](./scripts/crawler.js)
**RAM:** 4.05 GB
2022-02-11 01:08:32 -05:00
Search the network for targets to execute a script against.
```
[home ~/]> run scripts/crawler.js --help
2022-03-09 14:06:14 -05:00
Running script with 1 thread(s), pid 1 and args: ["--help"].
2022-02-11 01:08:32 -05:00
/scripts/crawler.js:
2022-02-04 11:49:05 -05:00
2022-02-11 01:08:32 -05:00
Search the network for targets to execute a script against.
Usage: run crawler.js [OPTIONS] SCRIPT [ARGS]...
run crawler.js --help
SCRIPT Script to copy & execute
2022-03-09 14:06:14 -05:00
ARGS Arguments for script. Forward the current target with: {{TARGET}}
2022-02-11 01:08:32 -05:00
Options:
2022-03-09 14:06:14 -05:00
-c --cpu Number of CPU threads to use with script
-d --depth Depth to scan to, defaults to 3
-l --level Exclude targets with higher hack level, defaults to current hack level
-p --ports Exclute targets with too many closed ports
-h --help Display this help message
2022-02-11 01:08:32 -05:00
```
2022-02-04 11:49:05 -05:00
2022-02-10 17:30:11 -05:00
### [miner.js](./scripts/miner.js)
2022-03-09 14:06:14 -05:00
**RAM:** 2.45 GB
2022-02-10 17:30:11 -05:00
2022-03-09 15:12:37 -05:00
Weaken, Grow, Hack loop to "mine" machine for money.
2022-02-10 17:30:11 -05:00
```
[home ~/]> run scripts/miner.js --help
2022-03-09 14:06:14 -05:00
Running script with 1 thread(s), pid 1 and args: ["--help"].
2022-02-10 17:30:11 -05:00
/scripts/miner.js:
2022-02-04 11:49:05 -05:00
2022-03-09 15:12:37 -05:00
Weaken, Grow, Hack loop to "mine" machine for money.
2022-02-10 17:30:11 -05:00
2022-03-09 15:12:37 -05:00
Usage: run miner.js [DEVICE]
2022-02-10 17:30:11 -05:00
run miner.js --help
2022-03-09 15:12:37 -05:00
DEVICE Device to mine, defaults to current machine
2022-02-10 17:30:11 -05:00
Options:
2022-03-09 14:06:14 -05:00
-h --help Display this help message
2022-02-10 17:30:11 -05:00
```
2022-02-24 16:58:39 -05:00
### [network-graph.js](./scripts/network-graph.js)
2022-03-06 19:13:00 -05:00
**RAM:** 3.85 GB
2022-02-24 16:58:39 -05:00
2022-02-26 09:39:04 -05:00
Scan the network for devices and display as an ASCII tree.
2022-02-24 16:58:39 -05:00
```
2022-03-06 19:13:00 -05:00
[home ~/]> run /scripts/network-graph.js --help
2022-03-09 14:06:14 -05:00
Running script with 1 thread(s), pid 1 and args: ["--help"].
2022-02-24 16:58:39 -05:00
/scripts/network-graph.js:
Scan the network for devices and display as an ASCII tree:
2022-03-06 19:13:00 -05:00
home
2022-02-24 16:58:39 -05:00
├─ n00dles (ROOTED)
2022-03-06 19:13:00 -05:00
| └─ max-hardware (80|1)
| └─ neo-net (50|1)
2022-02-24 16:58:39 -05:00
├─ foodnstuff (ROOTED)
└─ sigma-cosmetics (ROOTED)
2022-03-09 15:12:37 -05:00
Usage: run network-graph.js [OPTIONS] [DEVICE]
2022-02-24 16:58:39 -05:00
run network-graph.js --help
2022-03-09 15:12:37 -05:00
DEVICE Point to start scan from, defaults to current machine
2022-03-09 14:06:14 -05:00
2022-02-24 16:58:39 -05:00
Options:
2022-03-06 19:13:00 -05:00
-d --depth Depth to scan to, defaults to 3
2022-03-09 14:06:14 -05:00
-f --filter Display devices matching name
-r --regex Display devices matching pattern
2022-03-06 19:13:00 -05:00
-v --verbose Displays the required hack level & ports needed to root: (level|port)
-h --help Display this help message
2022-02-24 16:58:39 -05:00
```
2022-02-04 11:49:05 -05:00
2022-02-09 22:17:39 -05:00
### [node-manager.js](./scripts/node-manager.js)
2022-02-10 12:10:26 -05:00
**RAM:** 5.70 GB
2022-02-10 12:43:41 -05:00
2022-03-09 14:06:14 -05:00
Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates.
2022-02-04 16:17:48 -05:00
```
2022-02-10 12:10:26 -05:00
[home ~/]> run scripts/node-manager.js --help
2022-03-09 14:06:14 -05:00
Running script with 1 thread(s), pid 1 and args: ["--help"].
2022-02-10 12:10:26 -05:00
/scripts/node-manager.js:
2022-02-11 01:08:32 -05:00
Buy, upgrade & manage Hacknet nodes automatically. Tail for live updates.
2022-02-09 22:17:39 -05:00
2022-03-09 14:06:14 -05:00
Usage: run node-manager.js [OPTIONS] [LIMIT]
2022-02-10 12:10:26 -05:00
run node-manager.js --help
2022-03-09 14:06:14 -05:00
LIMIT Limit the number of nodes the manager will buy, defaults to 8
2022-02-04 16:17:48 -05:00
2022-02-09 22:17:39 -05:00
Options:
2022-03-09 14:06:14 -05:00
-b --balance Prevent spending bellow point
-h --help Display this help message
```
### [rootkit.js](./scripts/rootkit.js)
**RAM:** 4.75 GB - 4.90 GB <small>(depending on un-commented programs)</small>
Automatically gain root on a target machine. A file can also be uploaded & executed.
Programs can be commented out to lower the cost of running.
```
[home ~/]> run scripts/rootkit.js --help
Running script with 1 thread(s), pid 1 and args: ["--help"].
/scripts/rootkit.js:
2022-03-09 15:12:37 -05:00
Automatically gain root access to a device. A file can also be uploaded & executed.
2022-03-09 14:06:14 -05:00
2022-03-09 15:12:37 -05:00
Usage: run rootkit.js [OPTIONS] [DEVICE] [SCRIPT] [ARGS]...
2022-03-09 14:06:14 -05:00
run rootkit.js --help
2022-03-09 15:12:37 -05:00
DEVICE Device to root, defaults to current machine
2022-03-09 14:06:14 -05:00
SCRIPT Script to copy & execute
ARGS Arguments for script. Forward the current target with: {{TARGET}}
Options:
-c --cpu Number of CPU threads to use with script
-h --help Display this help message
2022-02-04 16:17:48 -05:00
```
2022-02-04 11:49:05 -05:00
2022-02-09 22:17:39 -05:00
### [update.js](./scripts/update.js)
2022-03-09 14:06:14 -05:00
**RAM:** 2.95 GB
2022-02-10 12:10:26 -05:00
2022-03-09 14:06:14 -05:00
Download the latest script updates from the repository using wget.
2022-02-10 12:28:51 -05:00
```
2022-02-11 01:08:32 -05:00
[home ~/]> run scripts/update.js --help
2022-03-09 14:06:14 -05:00
Running script with 1 thread(s), pid 1 and args: ["--help"].
2022-02-10 15:25:21 -05:00
/scripts/update.js:
2022-02-11 01:08:32 -05:00
2022-03-09 14:06:14 -05:00
Download the latest script updates from the repository using wget.
2022-02-11 01:08:32 -05:00
2022-03-09 14:47:41 -05:00
Usage: run update.js [OPTIONS] [SKIP]
2022-02-11 01:08:32 -05:00
run update.js --help
2022-03-09 14:47:41 -05:00
SKIP Skip updating self (for debugging)
2022-03-09 14:06:14 -05:00
2022-02-11 01:08:32 -05:00
Options:
2022-03-09 14:47:41 -05:00
-d --device Device to update, defaults to current machine
-h --help Display this help message
2022-02-04 18:48:08 -05:00
```
2022-03-09 15:58:15 -05:00
### [vanguard.js](./scripts/vanguard.js)
**RAM:** 1.90 GB
2022-03-09 15:59:45 -05:00
Weaken a device indefinitely.
2022-03-09 15:58:15 -05:00
```
[home ~/scripts]> run /scripts/vanguard.js --help
Running script with 1 thread(s), pid 1 and args: ["--help"].
/scripts/vanguard.js:
2022-03-09 15:59:45 -05:00
Weaken a device indefinitely.
2022-03-09 15:58:15 -05:00
Usage: run vanguard.js [OPTIONS] [DEVICE]
run vanguard.js --help
DEVICE Device to weaken, defaults to the current machine
Options:
-l --limit Limit the number of times to run
-h --help Display this help message
```