How to open a broken png file

This is one of the biggest challenges that I meet in the project.

The file clearly has no signature of png.

I tried to add the signature in the raw data but it didn’t work.

Take another look at the data. Under the ASCII form, every character is in the set A-Z, a-z, 0-9, +, / except for padding at the end which is 0, 1 or 2 ‘=’ characters.

Screen Shot 2019-10-07 at 10.52.42 am.png

Screen Shot 2019-10-07 at 10.54.09 am.png

These indicate that the data was encoded in base64. I used this website to convert.

https://www.branah.com/ascii-converter

The result shows that in Hex form, it is png file.

Screen Shot 2019-10-07 at 11.31.58 am.png

Then copy and paste in hex editor, save as png file. You can finally see the image!

Leave a comment