forensicsPromedium

mantis

bug-makers

Task: a ~459 KB file reported as 'data' that is actually a PNG with both its head (signature + IHDR start) and tail (final IDAT + IEND) eaten away. Solution: recognize raw IDAT data, brute-force width/height against the preserved IHDR CRC32 (800x800), rebuild signature+IHDR, stream-decompress the truncated zlib IDAT, pad missing scanlines, and reassemble a valid PNG to render the flag drawn on a praying mantis.

$ ls tags/ techniques/
png_header_reconstructionihdr_crc32_bruteforcetruncated_zlib_recoveryscanline_padding

🔒

Permission denied (requires tier.pro)

Sign in to access full writeups

Sign in with GitHub to continue. No email required.

$sign in

$ grep --similar

Similar writeups