Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,286 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cyguin bitburner scripts

Autopilot for Bitburner. Forked from Alain Bryden's repo with a hands-off BN12 recursion loop, Stanek's Gift handling, IPvGO, and a self-propagating BN15 darknet worm.


index


how the game works (spoilers)

Everything below is spoiler territory - the bits of Bitburner this fork is built on top of. Skip it if you'd rather figure it out yourself.

completing a bitnode

Every BitNode is won the same way: install a backdoor on w0r1d_d43m0n ("the World Daemon"). Backdoor it and the game routes you to the BitVerse, where you pick the next BitNode. Three ways to trigger it:

  • terminal hack on w0r1d_d43m0n (manual, or via ns.singularity.installBackdoor)
  • ns.singularity.destroyW0r1dD43m0n(nextBN, callback) - needs only hack level ≥ the WD requirement and root on WD. It does the backdoor, upgrades your Source-File, enters the next BitNode, and relaunches your callback script. This is what autopilot uses - no manual hack/rejoin step.

The WD hack requirement is 3000 × WorldDaemonDifficulty, and each BitNode sets its own multiplier: 1 for BN1/BN8, up to 5 for BN2/BN14, 3 for BN13, 2 for BN15, etc. BN12 scales it by 1.02^(level) forever.

source files & bitnode levels

Destroying a BitNode upgrades its Source-File by one level (cap 3 - except BN12, which has no cap). BN12.335 = Source-File 12 at level 334 (displayed level = SF level + 1). Each SF level grants a permanent perk you keep in every future BitNode.

the red pill, then vs now

Old versions: hacking the World Daemon queued "The Red Pill" augment, and installing it re-joined the BitNode. Modern 3.x: hacking WD just sends you to the BitVerse - no Red Pill involved. "The Red Pill" is now a Daedalus augment (2.5M rep, free), and in BN15 it can also be found in the darknet labyrinth. The "TRP loop" is gone; the reset is the rejoin itself.

neuroflux governor & the BN12 recursion

NeuroFlux Governor is the infinitely-stackable augment: every level gives a small all-stat boost, but each purchase costs more. BN12's Source-File means every new BitNode starts you with NFG level = your SF12 level. So each BN12 rejoin gives +1 SF12 → +1 NFG → more stats → faster next cycle. That's the entire "12.9999 keep playing forever" endgame.

stanek's gift

The Church of the Machine God's gift is a grid you charge with fragments for stat multipliers. You can only accept it while you have zero non-NFG augmentations installed or queued - buy anything first and you're locked out for that BN. Accepting auto-joins CotMG and installs the first augment free; the two upgrades are bought with rep.

ipvgo / node power (BN14)

The Go minigame (IPvGO) awards Node Power, which converts into a stat multiplier. BN14 quadruples that payoff. SF14 level 1 doubles it again, level 2 unlocks the go.cheat API, level 3 adds +25% cheat success.

the darknet (BN15)

The darknet is a shifting topology that mutates every cycle. Servers move and disconnect, so propagation has to authenticate and exec a worm onto a neighbor before it drifts away. The Red Pill is found at the bottom of the labyrinth.


features

  • BN12 recursion support. Autopilot stays in the loop: installs queued augs, then rejoins via destroyW0r1dD43m0n(12) once the queue is empty (each rejoin = +1 SF12, no max). Daemon runs xp-only targeting w0r1d_d43m0n. Disabled scripts: host-manager, hacknet-upgrade, contractor, deploy-scripts. Stockmaster gated on API cost.
  • BN15 DarkNet support. Autopilot deploys a self-propagating worm to darknet entry servers, pauses daemon during manual labyrinth play, and auto-installs augs when TRP is detected. BN15.1 in the default BN order. Bladeburner and host-manager disabled.
  • DarkNet worm solvers for all 21 server models (interactive + static). Keys to making this work: AccountsManager_4.2 binary search with persisted lo/hi state, NIL positional yes/yesn't feedback, OpenWebAccessPoint heartbleed clue extraction, Pr0verFl0 buffer overflow, Factori-Os running product with repeated prime factors, BigMo%od CRT modulo reconstruction, KingOfTheHill three-phase hill climbing. crackers.js handles the 13 static models. Note: solver reliability at scale is untested - propagation is the real bottleneck.
  • DarkNet worm stripped to 25KB (imports only crackers.js, not helpers.js). Exec RAM dropped from ~17GB to ~6.5GB to fit within the 16GB limit on depth 0-5 darknet servers.
  • Labyrinth solver. BFS maze navigator using dnet.authenticate() with direction commands. Worm auto-deploys labyrinth.js to labyrinth servers upon auth.
  • Headless. No tail windows by default.
  • Dark theme. Paste cyguin-theme.json into Bitburner Settings → Theme Editor.
  • Multiplier gating. Stockmaster skips when API costs are absurd. Daemon gates bladeburner, hacknet, and corp internally.

limitations

  • BN15 is not complete. Darknet worm propagation, labyrinth solving, and the full augment-to-WD cycle need more testing. Server mutation timing, RAM limits on depth 0-5 servers, and solver reliability at scale are all areas that regress unpredictably. Do not expect a clean hands-off BN15 run yet.
  • Darknet propagation speed. The darknet network mutates every cycle based on MS_PER_MUTATION_PER_ROW / MilliPerCycle. At high game speed, servers disconnect faster than auth can complete (interactive solvers take 5-10 seconds per server). Spread to neighbor servers requires the target to be in the source's serversOnNetwork at the exact moment ns.exec() fires. SCP always works (any distance with session), but exec requires direct connection in the server network topology. If the server moves during auth window, exec returns 0 and spread fails. The worm retries on next cycle.
  • Darknet RAM limits. Depth 0-5 servers have 16GB max RAM. darknet.js + crackers.js ~6.5GB. Deeper servers have 32GB+.
  • Labyrinth charisma requirement. Some labyrinth servers require higher charisma than what you have at early installs. The solver retries after each install cycle.
  • BN13/14. No per-BN strategy logic yet. BN13 runs on generic autopilot behavior, leaning on the shared Stanek's Gift handling (see the BN13 section); BN14 relies on go.js (driven by the daemon) for IPvGO - see the BN14 section. Both are in the default BN order.
  • Darknet state corruption. Rare save-game issue where DarknetState becomes corrupted. Only fix is an augment install to regenerate the network.

quick start

run git-pull.js
run autopilot.js

BN12 recursion

BN12 (The Recursion) is the endgame loop. Destroying it upgrades Source-File 12 with no max level, and each SF12 level starts you with +1 NeuroFlux Governor. The default BN order ends with 12.9999 ("keep playing forever"), so autopilot stays in the loop:

  1. Daemon runs --xp-only targeting w0r1d_d43m0n to farm hack XP. At deep recursion levels money is worthless (hack income is ~0.14% of server money), so XP is the only thing that matters.
  2. Augs queued? Autopilot installs them (plain prestige within BN12, keeps purchases) and relaunches.
  3. Queue empty + BN complete (hack level >= WD requirement and WD rooted): autopilot calls destroyW0r1dD43m0n(12) - this auto-rejoins BN12, bumps SF12 by 1, and relaunches autopilot. No manual hack/rejoin step needed.
  4. Repeat forever.

The WD hack requirement grows each cycle: 3000 * 1.02^(SF12+1) (e.g. ~2.28M at BN12.335, ~2.32M at BN12.336). Each rejoin's NFG level more than pays for the ~2% difficulty creep.

Deep-BN12 tweaks:

  • Sleeves launch with --training-reserve 0 so they train/study immediately - BN12 starts with $0, so the usual casino seed-money reserve would idle them in shock recovery.
  • Disabled as useless at deep recursion: host-manager, hacknet-upgrade-manager, contractor, deploy-scripts. Stockmaster gated on API cost.
  • Gotcha: the loop used to gate the reset on having augs queued and silently idle once the queue emptied - the recursion stalled at a fixed BN12.x. The rejoin is the reset now; an empty queue means "rejoin", not "wait".

running daemon directly at deep BN12

run daemon.js --xp-only --cycle-timing-delay 40 --queue-delay 50 --silent-misfires --recovery-thread-padding 5 --no-tail-windows --reserved-ram 1e+100 --no-share --disable-script /Tasks/contractor.js --disable-script /Tasks/backdoor-all-servers.js --disable-script /Tasks/tor-manager.js --disable-script hacknet-upgrade-manager.js --disable-script host-manager.js --disable-script /Tasks/ram-manager.js

BN13 (They're lunatics)

BN13 is the Stanek's Gift BitNode. The whole point is the Church of the Machine God's gift, which runs at 2x power and +1 extra size here (StaneksGiftPowerMultiplier: 2, StaneksGiftExtraSize: 1) - and SF13.3 (maxed) makes the grid bigger still. The win is the standard WD backdoor, and WD only asks for 3000 × WorldDaemonDifficulty(3) = 9000 hacking. The grind getting there is the slow part:

  • Hacking levels grow 4x slower (HackingLevelMultiplier: 0.25), hack exp is 0.1x, hack income 0.2x, faction work rep 0.6x.
  • Corporation is dead (0.001x valuation), bladeburner is slow (0.45x rank), gang is weak (0.3x softcap).
  • The default BN order plays 13.1 to unlock the gift and 13.3 to max the grid - 13.3 sits right before the BN12 forever-loop because the maxed gift is the best long-term multiplier engine.

How autopilot handles it (no BN13-specific code - generic behavior plus the shared Stanek handling):

  1. Accept the gift on the first tick. maybeAcceptStaneksGift fires before anything can buy an aug, and the game only allows acceptance with zero non-NeuroFlux augs installed or queued (canAcceptStaneksGift) - a single purchase locks you out for the rest of the BN. faction-manager.js refuses to buy augs while the gift is unaccepted (bypass with --ignore-stanek).
  2. ns.stanek.acceptGift() auto-joins CotMG and installs "Stanek's Gift - Genesis" (0 rep, 0 cost) - no Chongqing trip or invite needed. The other two gift augs are purchased normally from the church: "Stanek's Gift - Awakening" (1M rep) and "Stanek's Gift - Serenity".
  3. stanek.js charges fragments once Genesis is installed, so the 2x gift boost is live for the whole grind.
  4. Money mode until the end. BN13's hack income (0.2x) is nonzero, so the daemon stays in money mode; once hacking reaches 75% of the WD requirement it flips to --xp-only to close the last stretch (the generic WD-priority heuristic in autopilot).

Expect a slow run - the crippled multipliers make even a maxed-SF pass a genuine grind. The payout is the biggest, strongest gift you'll ever own, which is exactly why 13.3 comes right before the BN12 recursion endgame.

BN14 (IPvGO Subnet Takeover)

BN14 is the Go / IPvGO BitNode. The whole point is the Go game: GoPower: 4 makes each point of Node Power worth 4x the usual stat multiplier, so playing IPvGO is the fastest source of raw stats in the game. The win is the standard WD backdoor at 3000 × WorldDaemonDifficulty(5) = 15,000 hacking.

How autopilot handles it (no BN14-specific code - go.js is inherited from alain and driven by the daemon):

  1. go.js plays IPvGO automatically. The daemon launches it whenever home RAM allows (daemon.js: ~20GB minimum, 64GB to run at full speed). Node Power scales into hack/combat multipliers - the main way BN14 fights back against its nerfs.
  2. Stanek's Gift is skipped. BN14 nerfs the gift (StaneksGiftPowerMultiplier: 0.5, StaneksGiftExtraSize: -1), and maybeAcceptStaneksGift bails out on negative extra-size - no point accepting a shrunken gift.
  3. Money-mode daemon + normal faction work for the aug grind, then the generic --xp-only push once hacking reaches 75% of the 15,000 WD requirement.

The nerfs are real but not the worst: hacking level ×0.4, hacking speed ×0.3, hack income ×0.3, crime success ×0.4 - and, the brutal one, faction work rep ×0.2 (company rep ×0.2 too), so rep-gated augs come slow. Aug cost is ×1.5. Corporation (×0.4), bladeburner (×0.6), and gangs (×0.7) are all playable but not worth leaning on.

SF14 rewards: level 1 doubles the stat-multiplier payoff of Node Power, level 2 unlocks the go.cheat API, level 3 adds +25% cheat success and raises the max Go favour. The default BN order plays 14.2 and 14.3 mid-order; go.js works from BN1.1 onward regardless, so the gift of SF14 just makes the already-running Go loop stronger.

BN15 darknet

The autopilot detects darknet entry servers from home via dnet.probe(), authenticates (entry servers are ZeroLogon), scps the worm files, and execs darknet.js on the entry host. The worm propagates by:

  1. dnet.probe() - find visible darknet neighbors
  2. dnet.authenticate() - crack password (interactive or static solver)
  3. deployWorm() - immediate SCP + exec to newly-authed server before mutation cycle disconnects it
  4. Each deployed copy opens .cache files, runs phishing attacks, and probes its own neighbors

If the player connects to a darknet server, the autopilot detects it and kills the daemon. All modals (casino, install countdowns, faction alerts) are suppressed during darknet play. When TRP is acquired from labyrinth, autopilot installs augments immediately - the check runs on every tick including the darknet path.


upstream vs fork

Anything not listed here is byte-for-byte Alain Bryden's upstream code - daemon.js, helpers.js, faction-manager.js, work-for-factions.js, casino.js, stockmaster.js, gangs.js, bladeburner.js, sleeve.js, stanek.js, go.js, host-manager.js, ascend.js, hacknet-upgrade-manager.js, scan.js, and everything under Tasks/ and Remote/. Treat those as the unmodified foundation.

Cyguin's code begins at:

Forked from alain, but rewritten:

file what changed
autopilot.js The only upstream script meaningfully rewritten. BN12 recursion loop (xp-only daemon → install queued augs → rejoin via destroyW0r1dD43m0n(12) when queue empty), BN15 darknet worm deploy + modal suppression, casino recovery, headless defaults.
git-pull.js Repointed from alainbryden to this repo (cyguin/bitburner-scripts).
README.md This file.

New files - no upstream counterpart (all BN15 darknet unless noted):

file purpose
darknet.js Self-propagating worm. Stripped to ~25KB (imports only crackers.js, not helpers.js) so exec fits the 16GB depth-0-5 servers.
crackers.js Static-model password solvers + common passwords.
darknet-looter.js .cache opening + phishing.
darknet-virus.js Heartbleed password harvesting.
labyrinth.js BFS maze solver for labyrinth servers.
bn15-sidecar.js WD hacking after TRP is found.
download.js raw.githubusercontent.com downloader - no GitHub API, no rate limits; full-repo restore with no args.
cheat-tool.js Dev tool. Not for normal play.
cyguin-theme.json Dark theme; paste into Bitburner Settings → Theme Editor.

credits

Alain Bryden wrote all the hard code. This fork exists because his scripts are worth building on.

About

Autopilot scripts for Bitburner — a fork of alainbryden/bitburner-scripts with a hands-off BN12 recursion loop (rejoin w0r1d_d43m0n forever, NFG stacking to BN999+), BN13 Stanek's Gift support, and a self-propagating BN15 darknet worm

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages