PNG [Forensics]

less than 1 minute read

Fix PNG by file magic bytes

Challenge Description

The picture is corrupted. Please restore it.

sky.zip

Solution

This one is pretty straight foward. We open it in a hex editor (like “010 Editor”), see that it’s missing the file signature (magic bytes), so we go to Wikipedia and search for “PNG”, then add 89 50 4E 47 0D 0A 1A 0A to the beginning of the file and done.

Flag: s1gnatur35_Are_v3ry_1mp0rtant_1n_th3_5tructur3_of_fil3s