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_]]
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
The repository can be loaded into the game by doing the following:
|
2022-02-09 22:17:39 -05:00
|
|
|
1. Download the update script ingame: `wget https://gitlab.zakscode.com/ztimson/BitBurner/-/raw/develop/scripts/update.js scripts/update.js`
|
|
|
|
2. Run update script: `run scripts/update.js`
|
2022-02-04 11:49:05 -05:00
|
|
|
|
|
|
|
## Quick Start
|
|
|
|
```bash
|
|
|
|
# Start the node manager
|
|
|
|
run scripts/node-manager.js 8
|
|
|
|
|
|
|
|
# Chain the crawler, auto-pwner & miner to hack everything within 3 hops
|
2022-02-10 13:55:16 -05:00
|
|
|
run scripts/crawler.js 3 /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
|
|
|
|
Running script with 1 thread(s), pid 176 and args: ["--help"].
|
|
|
|
/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
|
|
|
|
ARGS Any aditional arguments to pass to SCRIPT. Passing '{{TARGET}}' will forward the current target
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-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.
|
|
|
|
|
|
|
|
It's recommended you use any extra compute power on your home computer/servers to break strong servers & speed up the process.
|
|
|
|
|
2022-02-09 22:17:39 -05:00
|
|
|
### [crawler.js](./scripts/crawler.js) (WIP)
|
2022-02-04 11:49:05 -05:00
|
|
|
Scans the network to a desired depth & runs the specified script against targets.
|
|
|
|
|
|
|
|
It's recommended you use this in combination with `auto-pwn.js`.
|
|
|
|
|
2022-02-09 22:17:39 -05:00
|
|
|
### [miner.js](./scripts/miner.js) (WIP)
|
2022-02-04 11:49:05 -05:00
|
|
|
Will weaken, spoof & hack the target in a loop.
|
|
|
|
|
|
|
|
It's recommended you run this in combination with `auto-pwn.js` to gain root & run the miner on the remote machine.
|
|
|
|
|
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
|
|
|
|
Running script with 1 thread(s), pid 128 and args: ["--help"].
|
|
|
|
/scripts/node-manager.js:
|
|
|
|
|
|
|
|
Buy, upgrade & manage Hacknet nodes automatically.
|
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 12:10:26 -05:00
|
|
|
**RAM:** 1.60 GB
|
|
|
|
|
2022-02-10 12:28:51 -05:00
|
|
|
Automatically download the latest versions of all scripts using wget.
|
|
|
|
```
|
|
|
|
[home ~/]> run scripts/update.js
|
2022-02-10 15:25:21 -05:00
|
|
|
Running script with 1 thread(s), pid 18 and args: [].
|
|
|
|
/scripts/update.js: Updating self:
|
|
|
|
/scripts/update.js: update.js [==================>] 100% (14.9 MB/s)
|
|
|
|
/scripts/update.js:
|
|
|
|
/scripts/update.js: Restarting...
|
2022-02-10 12:28:51 -05:00
|
|
|
/scripts/update.js: Downloading scripts:
|
2022-02-10 15:25:21 -05:00
|
|
|
/scripts/update.js:
|
|
|
|
/scripts/update.js: lib/arg-parser.js [==================>] 100% (13.4 MB/s)
|
|
|
|
/scripts/update.js: auto-pwn.js [==================>] 100% (15.8 MB/s)
|
|
|
|
/scripts/update.js: bruteforce.js [==================>] 100% (18 MB/s)
|
|
|
|
/scripts/update.js: crawler.js [==================>] 100% (23.5 MB/s)
|
|
|
|
/scripts/update.js: miner.js [==================>] 100% (18.4 MB/s)
|
|
|
|
/scripts/update.js: node-manager.js [==================>] 100% (22 MB/s)
|
|
|
|
/scripts/update.js: update.js [==================>] 100% (22.7 MB/s)
|
|
|
|
/scripts/update.js:
|
2022-02-10 12:28:51 -05:00
|
|
|
/scripts/update.js: ✅ Done!
|
2022-02-04 18:48:08 -05:00
|
|
|
```
|