Challenge overview
The challenge provides a compiled executable that checks a password. Once the correct password is supplied, the program reveals information about the Insectoids’ favorite cereal.
Instead of guessing passwords repeatedly, the solution is to analyze the binary’s password-validation and decryption routines.
The successful analysis identified three important components:
Component A
SHA-1 hashing
Used for password verification, allowing the binary to compare a digest instead of storing the password in plaintext.
Component B
Custom Base64
A modified alphabet decodes the embedded data, so an ordinary Base64 decoder is not enough on its own.
Component C
RC4 decryption
The decoded bytes are decrypted with RC4 to recover the hidden image URL.
cookiecrisp
Download and verify the binary
The challenge offered Windows x86 and Linux x86 versions. We analyzed the Linux x86 binary.
Download URL
https://tinyurl.com/3vsh7stb
Recorded SHA-256
dd407021703d9e0a5592ff1d92bee5a03a4f4b6e489b055cc896949fcbb380e5
Verify the downloaded file:
$ sha256sum re01-lin-x86.bin
Compare the result with the hash above to ensure you’re analyzing the expected artifact.
Inspect the file
$ file re01-lin-x86.bin
$ strings re01-lin-x86.bin
file identifies the executable format, while strings can reveal readable text — although encrypted or encoded strings may not be visible in plaintext.
Safe handling
Treat challenge binaries as untrusted
Verify the hash first and perform execution or dynamic analysis only in an isolated VM or sandbox. The recovery path documented here centers on inspecting the validation and payload routines.
Reverse-engineer the password check
The binary’s password-validation logic uses a SHA-1 digest comparison. The supplied password is hashed, and the resulting digest is compared with a value embedded in the executable.
The important observation is that the binary does not need to store the password itself in plaintext. It can store only its hash.
cookiecrisp
The earlier candidate booberry was from a different version of the challenge and was not the correct password for this binary.
Why this works
Find the comparison, then satisfy it
SHA-1 produces a 160-bit digest and is not meant to be “decrypted.” By locating the hash comparison in the program and testing candidate inputs against it, the expected password can be identified. In other words, the work is to understand the check — then find an input whose digest matches.
Decode and decrypt the embedded data
After recovering the password, the next step was to analyze the program’s embedded payload.
The binary used two transformations:
- Custom Base64 decoding: the program used a modified alphabet, so ordinary Base64 decoding alone was insufficient.
- RC4 decryption: the decoded data was then decrypted using RC4.
The correct approach was to inspect the alphabet mapping and the RC4 key-handling logic, reproduce those transformations, and examine the resulting plaintext.
Analyst note
Reproduce the binary’s exact transforms
When a payload will not decode cleanly, compare the implementation character-for-character. A shuffled Base64 alphabet changes every lookup, and the RC4 stage will only produce meaningful plaintext when the decoded bytes and key handling are both reproduced correctly.
Retrieve the image and find the flag
Open the recovered URL in a browser or retrieve the image for local inspection.
The image contained the challenge’s final flag. The flag recovered during our analysis was:
deadface{You-Vill-Eat-Ze-Bugz-Und-You-Vill-Be-Happy!!!}
Final answer
Cereal Killer 01 — Flag
Submit this flag
deadface{You-Vill-Eat-Ze-Bugz-Und-You-Vill-Be-Happy!!!}
Reproducibility note
What was retained — and what was not
The password, Linux binary hash, decryption techniques, image URL, and recovered flag are preserved in the source notes. The exact hash constant, custom alphabet, RC4 key derivation, and original terminal commands were not retained, so this writeup does not fabricate a full executable decryption script.