Magicplay
Description
Dwayne's mischevious nephew played around in his pc and corrupted a very important file.. Help dwayne recover it!
Author: Rakhul
Downloads: magic_play.png
Solution
└─$ display ./magic_play.png
display-im6.q16: improper image header './magic_play.png' @ error/png.c/ReadPNGImage/4107.
└─$ pngcheck -v ./magic_play.png
File: ./magic_play.png (250137 bytes)
this is neither a PNG or JNG image nor a MNG stream
ERRORS DETECTED in ./magic_play.png
Looking into the header with Hex Editor:

It looks like header chunks are messed up, so let's fix them.
Correct chunk names can be found in wikipedia: https://www.wikiwand.com/en/PNG#Critical_chunks
Fixed image:


Flag: dsc{COrrupt3d_M4g1C_f1Ag}
Last updated