cryptomedium

Rhome

hackthebox

Task: Break a Diffie-Hellman key exchange to decrypt an AES-encrypted flag. Solution: Exploit a small subgroup attack where the generator order q is only 42 bits, compute the discrete logarithm using Baby-step Giant-step algorithm in O(sqrt(q)) time, recover the shared secret, and decrypt the flag with AES-ECB.

$ ls tags/ techniques/
small_subgroup_attackbaby_step_giant_steppohlig_hellman

🔒

Permission denied (requires tier.pro)

Sign in to access full writeups

Create a free account with GitHub, then upgrade to Pro.

$ssh [email protected]