Daily Hack

A fresh 60-second challenge every day. Solve it, earn XP, and keep your streak alive.

Next hack in --:--:--
Daily Hack #81

Repair the magic bytes

Reverse Engineering & Binary Exploitation Difficulty Medium ~4 min +10 XP

A file recovered from a wiped drive is named like a PNG and is almost certainly a PNG, but every decoder refuses to open it. The rest of the structure survived intact: you can see the IHDR, gAMA and cHRM chunk names in the ASCII column, so the damage is limited to the very start. Exactly one byte inside the eight-byte signature was flipped during recovery. Compare the file's leading bytes against the magic-byte reference, and find the single byte that does not belong. Submit that byte in hex: either the wrong value the file currently holds or the correct value it should hold is accepted, because naming either one proves you located the corruption. What is not accepted is the offset.

Play freely - sign up to submit your answer and earn XP.

Solved! +10 XP
First blood! You were first to crack today's hack.
How it works

Nice one!

Sign up free to claim your +10 XP and start your streak.

Claim +10 XP - sign up free
24,000+ Hackers 100+ Labs & Courses Free
Start Hacking Free