← all challenges

LCG

Level 2 · Apprentice crackme 100 pts

🎯 Briefing

A linear congruential generator (the classic rand()) produces the keystream here. Each step is state = state * A + C (mod 2^32), and the top byte is XOR-ed with a character. The constants are in the binary — replay the generator and XOR back.

⬇️ Get the challenge

Download (linux) 5.6 MB · sha256 2e05cc20aa7656e9…

Download (windows) 4.2 MB · sha256 677d4193a4034386…

Reverse it to recover the flag — ideally with ORRESS. Run unknown binaries in a VM.

💡 Hints (0/3 used)

Log in to use hints.

📝 Writeup

🔒 Solve this challenge to unlock the author's writeup.