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:
|
|
|
|
1. Download the update scritp in-game by running: `wget https://gitlab.zakscode.com/ztimson/BitBurner/-/raw/develop/scripts/update.js scripts/update.js`
|
|
|
|
2. Run the update script to pull the entire repository: `run scripts/update.js`
|
|
|
|
|
|
|
|
## 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
|
|
|
|
run scripts/crawler.js 3 scripts/auto-pwn.js scripts/miner.js
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Scripts
|
|
|
|
### auto-pwn.js
|
|
|
|
Automatically gains root on a target machine. After being pwned, the specified files will be coppied & ran.
|
|
|
|
|
|
|
|
It's recomended you use this in combination with `miner.js`
|
|
|
|
|
|
|
|
### bruteforce.js
|
|
|
|
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.
|
|
|
|
|
|
|
|
### crawler.js
|
|
|
|
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`.
|
|
|
|
|
|
|
|
### miner.js
|
|
|
|
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.
|
|
|
|
|
|
|
|
### node-manager.js
|
|
|
|
Manages the specified number of nodes buying any if they don't exist.
|
|
|
|
|
2022-02-04 16:17:48 -05:00
|
|
|
It's recommended you run this from your home computer, it useses 5.6 GB of RAM.
|
|
|
|
```
|
|
|
|
Usage:
|
2022-02-04 18:48:08 -05:00
|
|
|
run node-manager.js <num> [savings]
|
2022-02-04 16:17:48 -05:00
|
|
|
|
2022-02-04 18:48:08 -05:00
|
|
|
num - Target number of nodes
|
|
|
|
savings - Prevent spending bellow this point
|
2022-02-04 16:17:48 -05:00
|
|
|
```
|
2022-02-04 11:49:05 -05:00
|
|
|
|
|
|
|
### update.js
|
|
|
|
Automaticlly downloads all the scripts in this repo using the in-game `wget`.
|
2022-02-04 18:48:08 -05:00
|
|
|
```
|
|
|
|
Usage:
|
|
|
|
run update.js
|
|
|
|
```
|