← all challenges

Discrete Log

Level 4 · Specialist crackme 400 pts

🎯 Briefing

Given a prime p, a base g, and h = g^x (mod p) — all in the binary — recover the exponent x. The intended solution is baby-step/giant-step, which runs in about sqrt(p) steps, rather than trying every exponent in turn.

⬇️ Get the challenge

Download (linux) 5.6 MB · sha256 d97e90b25dceab66…

Download (windows) 4.2 MB · sha256 ee8ec4525143f6ea…

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.