Contains the automation scripts for Bitburner game.
Batcher is a hacking script that is using the best possible HWGW hacking strategy and utilizes its full potential on all the best targets at the same time (if you have enough RAM).
Basically can be used in middle and late game since Formula.exe and servers with the big amount of RAM required.
Features:
- Gets the list of all target servers we can attack
- Gets root access in all targets
- Prepares all targets for batching (decreasing security level to minimum, growing money to maximum)
- Choosing the best targets for attack
- Trying to utilize all targets and personal servers for attack
- Emergency check: analyzing target if the attack process is not broken
- Recovery: recover the broken attack process for the target
Flags:
--prepareOnly or --p - will only prepare all the targets
--preparedOnly - will skip target preparation and start attacking only prepared targets
--monitorTargets - will run separate monitor services for all targets we are attacking (see monitorServer script description below)
Screenshot with Batcher output and 100+ billions/s income
Distributive hack is a hacking script that can be used in middle game (Formula.exe required).
The lite version of this script can be used before purchasing Formula.exe.
Features:
- Gets the list of all target servers we can attack (in fly)
- Gets root access in all targets (in fly)
- Runs WG or WH batch depended on the current server stats
- Wait for the previous batch will be finished to run the next one
- Utilises all target and personal servers for attack
Simple hack is a hacking script that can be used in early game since it is required only 2.40 GB of RAM per thread.
Attacking only one target (run one more script to attack another target of you have free RAM)
Usage: run simpleHack.js target-host <-t number-of-threads>
Also contains simpleHackManager.js to run when you have a little bit more RAM to automatically find targets and run simple hacks.
- totalKill.js - kill all processes in all servers you have root access to.
- purchaseAndUpgradeServers.js - automatically purchasing and upgrading personal servers. --maxUpgradeFirst or --muf will not purchase new server unless previous one is not upgraded to maximum. Will upgrade evenly by default. --name the name of the server to purchase 'myserv' by default.
- purchaseAndUpgradeHacknetNodes.js - automatically purchasing and upgrading Hacknet Nodes.
- findHostPath.js < host-name > < regexp flags > - finds the connection path to the desired host.
- findHostByOrganization.js < organization > < regexp flags > - finds host name by organization name.
- checkBestServersToHack.js < limit > - shows the table with sorted targets to hack by calculated significance. (Formula.exe required)
- monitorServer.js - shows the server information and threads required to prepare batch and attack batch, updating info every ~50ms. Formula.exe required. (see the screenshot with output below)
- findContracts.js - finds host names with contracts.
- findFile.js < substring > - finds host names with file by file name substring.
- solveContracts.js - find and solve contracts. (Not all contracts supported yet)