bitburner/README.md

158 lines
4.5 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
[[_TOC_]]
## Quick Start
```bash
2022-02-10 17:30:11 -05:00
# Download & run the update script ingame
wget https://gitlab.zakscode.com/ztimson/BitBurner/-/raw/develop/scripts/update.js scripts/update.js
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-02-11 01:08:32 -05:00
# Chain the crawler, auto-pwner & miner to hack everything on the network
run scripts/crawler.js /scripts/auto-pwn.js {{TARGET}} /scripts/miner.js
2022-02-04 11:49:05 -05:00
```
## Scripts
2022-02-10 13:55:16 -05:00
### [auto-pwn.js](./scripts/auto-pwn.js)
**RAM:** 4.75 GB
2022-02-04 11:49:05 -05:00
2022-02-10 13:55:16 -05:00
Automatically gain root on a target machine. Optionaly after being rooted, a file can be coppied & executed.
```
[home ~/]> run scripts/auto-pwn.js --help
2022-02-11 01:08:32 -05:00
Running script with 1 thread(s), pid 161 and args: ["--help"].
2022-02-10 13:55:16 -05:00
/scripts/auto-pwn.js:
Automatically gain root on a target machine. Optionaly after being rooted, a file can be coppied & executed.
Usage: run auto-pwn.js [TARGET] [SCRIPT] [ARGS]...
run auto-pwn.js --help
TARGET Target machine to root. Defaults to localhost
SCRIPT Script to copy & execute
2022-02-10 17:30:11 -05:00
ARGS Aditional arguments for SCRIPT. Forward the target with "{{TARGET}}"
2022-02-10 13:55:16 -05:00
Options:
2022-02-11 01:08:32 -05:00
-t --threads=num Set number of threads for script
2022-02-10 13:55:16 -05:00
-h --help Display help message
```
2022-02-04 11:49:05 -05:00
2022-02-09 22:17:39 -05:00
### [bruteforce.js](./scripts/bruteforce.js) (WIP)
2022-02-04 11:49:05 -05:00
Attacks target until security falls bellow threshold. Useful for throwing extra compute power & cracking a specific computer.
2022-02-09 22:17:39 -05:00
### [crawler.js](./scripts/crawler.js) (WIP)
2022-02-11 01:08:32 -05:00
**RAM:** 3.05 GB
Search the network for targets to execute a script against.
```
[home ~/]> run scripts/crawler.js --help
Running script with 1 thread(s), pid 163 and args: ["--help"].
/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
ARGS Aditional arguments for SCRIPT. Forward the target with "{{TARGET}}"
Options:
-d --depth=num Number of network hops. Defaults to 3
-l --level=num Exclude targets with a high hacking level. Defaults to hack level, 0 to disable
-p --ports=num Exclute targets with too many closed ports
-t --threads=num Set number of threads for script
-h --help Display help message
```
2022-02-04 11:49:05 -05:00
2022-02-10 17:30:11 -05:00
### [miner.js](./scripts/miner.js)
**RAM:** 2.35 GB
Weaken, spoof & hack the target in a loop for money.
```
[home ~/]> run scripts/miner.js --help
2022-02-11 01:08:32 -05:00
Running script with 1 thread(s), pid 165 and args: ["--help"].
2022-02-10 17:30:11 -05:00
/scripts/miner.js:
2022-02-04 11:49:05 -05:00
2022-02-10 17:30:11 -05:00
Weaken, spoof & hack the target in a loop for money.
2022-02-11 01:08:32 -05:00
Usage: run miner.js [TARGET]
2022-02-10 17:30:11 -05:00
run miner.js --help
TARGET Target to mine. Defaults to localhost
Options:
-h --help Display help message
```
2022-02-24 16:58:39 -05:00
### [network-graph.js](./scripts/network-graph.js)
**RAM:** 3.80 GB
Scan the network for devices and display as an ASCII tree
```
[home ~/]> run /scripts/network-graph.js -h
Running script with 1 thread(s), pid 138 and args: ["-h"].
/scripts/network-graph.js:
Scan the network for devices and display as an ASCII tree:
├─ n00dles (ROOTED)
| └─ max-hardware (80|1)
| └─ neo-net (50|1)
├─ foodnstuff (ROOTED)
└─ sigma-cosmetics (ROOTED)
Usage: run network-graph.js [OPTIONS] TARGET
run network-graph.js --help
TARGET Starting point to scan from, defaults to home
Options:
-d --depth=num Depth to scan for devices to, defaults to 3
-v --verbose Displays "ROOTED" or the required hack level & ports: (level|port)
-h --help Display help message
```
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
Buy, upgrade & manage Hacknet nodes automatically.
2022-02-04 16:17:48 -05:00
```
2022-02-10 12:10:26 -05:00
[home ~/]> run scripts/node-manager.js --help
2022-02-11 01:08:32 -05:00
Running script with 1 thread(s), pid 166 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-02-10 12:10:26 -05:00
Usage: run node-manager.js [OPTIONS] LIMIT
run node-manager.js --balance 1E6 4
run node-manager.js --help
LIMIT Limit the number of nodes the manager will buy
2022-02-04 16:17:48 -05:00
2022-02-09 22:17:39 -05:00
Options:
2022-02-10 12:10:26 -05:00
-b --balance=num Prevent spending bellow this point
-h --help Display 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-02-10 15:38:25 -05:00
**RAM:** 2.60 GB
2022-02-10 12:10:26 -05:00
2022-02-10 12:28:51 -05:00
Automatically download the latest versions of all scripts using wget.
```
2022-02-11 01:08:32 -05:00
[home ~/]> run scripts/update.js --help
Running script with 1 thread(s), pid 167 and args: ["--help"].
2022-02-10 15:25:21 -05:00
/scripts/update.js:
2022-02-11 01:08:32 -05:00
Automatically download the latest versions of all scripts using wget.
Usage: run update.js
run update.js --help
Options:
-h --help Display help message
2022-02-04 18:48:08 -05:00
```