A collection of useful scripts for the game Bitburner.
Purchases the number of requested servers, optionally deleting existing servers in order to make space. Always attempts to purchase the highest amount of RAM for the requested server pool that can currently be afforded.
# Buy 4 servers
run buyServers.js 4
Crawl all the servers that are reachable from a given target. Defaults to home
.
# All reachable servers from home
run spider.js
# All reachable servers from n00dles
run spider.js n00dles
Determines the server with the most money, and then sets up a continuous loop of hack
, grow
and weaken
against that target.
Attempts to synchronize the cycles according to the length of time it takes to execute a hack
so as to not throw off the calculations.
run hackController.js
hack
a specific target.
# Hack n00dles using 2 threads, after an initial wait of 4
run hackTarget.js 2 4 n00dles
grow
a specific target.
# Grow n00dles using 2 threads, after an initial wait of 4
run growTarget.js 2 4 n00dles
weaken
a specific target.
# Weaken n00dles using 2 threads, after an initial wait of 4
run weakenTarget.js 2 4 n00dles
Open up as many ports as possible, then attempt to gain root on the target server.
run gainRoot.js n00dles