Unlock "Exploit: rainbow"

How To Unlock

This achievement requires you to crack a Bcrypt hash. Ironically, a rainbow table would not help you to crack this hash. So we will have to do a bruteforce attack. We'll be using a dictionary attack.

Requirements

A beefy PC

Hashcat

Word list. I use the list of english words for this: https://raw.githubusercontent.com/dwyl/english-words/master/words.txt

Be comfortable with an actual command line

If you're on a mac, you can install hashcat through homebrew (https://brew.sh).

Steps

If you're not on a mac, skip step 1. I'll assume you already have hashcat installed

brew install hashcat

Download the word list. I save mine in the downloads folder

Create a new text file and call it hash.txt. I save the file in my downloads folder

Inside the hash.txt file, paste the following hash "$2a$10$aertxDEkgor8baVtQDZsLuMwwGYmkRM/ohcA6FjmmzIHQeTCsrCcO" without quote. You can find the hash here: https://github.com/bitburner-official/bitburner-src/blob/216500ed327abcdaaee52b21f9e73722c90a2175/src/NetscriptFunctions/Extra.ts#L55C51-L55C111 in case the hash changes

Once you have both files, run this command: hashcat -a 0 -m 3200 ~/Downloads/hash.txt ~/Downloads/words.txt

...

Profit!

Example hashcat output

I have redacted the code if you don't want spoilers

$2a$10$aertxDEkgor8baVtQDZsLuMwwGYmkRM/ohcA6FjmmzIHQeTCsrCcO: redacted Session..........: hashcat Status...........: Cracked Hash.Mode........: 3200 (bcrypt $2*$, Blowfish (Unix)) Hash.Target......: $2a$10$aertxDEkgor8baVtQDZsLuMwwGYmkRM/ohcA6FjmmzIH...CsrCcO Time.Started.....: Thu Apr 18 20:44:13 2024, (43 secs) Time.Estimated...: Thu Apr 18 20:44:56 2024, (0 secs) Kernel.Feature...: Pure Kernel Guess.Base.......: File (/Users/ redacted /Downloads/words.txt) Guess.Queue......: 1/1 (100.00%) Speed.#2.........: 109 H/s (9.13ms) @ Accel:8 Loops:16 Thr:1 Vec:1 Recovered........: 1/1 (100.00%) Digests (total), 1/1 (100.00%) Digests (new) Progress.........: 4736/9999 (47.36%) Rejected.........: 0/4736 (0.00%) Restore.Point....: 4672/9999 (46.72%) Restore.Sub.#2...: Salt:0 Amplifier:0-1 Iteration:1008-1024 Candidate.Engine.: Device Generator Candidates.#2....: qqqqqqq -> emilio Hardware.Mon.SMC.: Fan0: 60% Hardware.Mon.#2..: Temp: 78c Started: Thu Apr 18 20:44:05 2024 Stopped: Thu Apr 18 20:44:58 2024

What's next?

You just need to figure out the code to unlock the achievement :)

TL;DR

Write a new script with the following content:

/** param {NS} ns */ export async main(ns) { ns.rainbow('noodles'); }

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=3225715342					

More Bitburner guilds