Challenges
Hidden ZIP inside PNG
Steganography
Hard
Polyglot file
Solves: 11
Hidden ZIP inside PNG
Author: CyberSamSU
Points
75
A polyglot file is a file that is valid in two (or more) formats at the same time. The secret to this is that the "central directory" of a ZIP archive is located at the end of the file, and most ZIP software searches for it from the end — so even if there is other data (for example, an entire PNG image) before the archive, it will not be a problem.
The attached rasm.png opens as a normal image, but it is actually also a valid ZIP archive.
In Windows, it is enough to rename the file to rasm.zip and open it, or use zipfile.ZipFile('rasm.png') directly in Python.
Attached files
rasm.png
Log in to download
SHA-256 checksums
rasm.png: e3da2a2abbdf78d672b697eb9bb6bf38883cb89046384f2fa2bc824e77e27701
To submit a flag, log in.