PUBLIC EXERCISE / ELF X86-64
r5 · Follow what changes together
Recover a 40-byte input by keeping track of two values through a randomized loop.
Original puzzle at the reviewed revision · All five public exercises
01 Open the exact ELF file
In PryIDA, open r5 and select File Details. Check the SHA-256 above against the downloaded file. The ELF label identifies the Linux file format and x86-64 identifies its machine instructions. Static analysis on macOS can read both.

02 Find the decision in main
Analyze main and check_password with REA. In Pseudocode, find the call from main to check_password. Main uses the return value to select its success message. Start inside that call, where the input is actually checked.

03 Find the two arrays that change
Read check_password. It compares lengths first, then copies your input over buf. The text that starts in buf supplies a length. Follow the read from delta through the loop. Its 40 file bytes are the starting amounts removed at each position.


04 Compare the two subtractions
At each position with a nonzero delta, the loop subtracts the same amount from delta and from buf. Imagine two counters that both go down by three. Their difference stays the same. Each delta counter reaches zero, so the total removed from each input byte is its original delta.

05 Read the final comparison target
The call to strcmp compares the changed buf with master. Follow the master pointer to the string in the file. At each position we need input minus original delta to land on this target byte.

06 Add back the original deltas
A byte wraps after 255. Add the target byte and original delta, then keep the low eight bits. At position zero, the target is 0x74 and the delta is 0x03. Their sum is 0x77, the letter w. The independent replay follows the same loop for all 40 positions and confirms that the resulting buffer equals master.

Reveal the solution
well_done_now_go_on_irc_and_ask_for_more
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.