PUBLIC EXERCISE / ELF X86-64
r7 · Read an MD5 digest from instructions
Recover a 16-byte target from two machine instructions and verify a candidate.
Original puzzle at the reviewed revision · All five public exercises
01 Open the exact binary
Open r7 in PryIDA. Confirm the SHA-256 fingerprint and view File Details. Analyze main and check_password with REA.

02 Trace the input to a digest
Main sends your input into check_password. The calls named MD5_Init, MD5_Update, and MD5_Final point to a hash calculation. The input length comes from strlen, which counts bytes up to the terminating zero. The function then compares the 16-byte digest in two eight-byte pieces.


03 Read the first eight bytes in Hex
A displayed 64-bit number can appear reversed compared with the file bytes on this little-endian machine. Select the immediate operand of the first comparison’s movabs instruction. Read the actual bytes in the order shown by Hex.

04 Join the second half and test a candidate
Append the eight bytes from the second movabs, producing ec85070aa70e598eda72cbe82d99fabc. Search for the exact digest to find a published example candidate, then hash that candidate locally. Hashes let you check a guess. The successful match and the failed check with an added exclamation mark show why the exact bytes matter.

Reveal the solution
md5password
The replay reads the original ELF bytes and applies the recovered check to this input. Open the receipt for the exact byte ranges and verification values.