Corrupted File¶
-
As the problem states, the solution lies in the header of the given file:
bash head unopenable.gif | xxd
-
Some googling told that GIF files start with
GIF87a
orGIF89a
, but the given file's header begins with9a
. Edit the header accordingly, Voila!, now the GIF is openable. - Use some online tool to get the frames of the GIF, which give us the encoded flag.
-
Decode the flag:
bash echo "<encoded-flag>" | base64 -d