Home CTFs | HackDay2023 | Chunk_of_surprises
Post
Cancel

CTFs | HackDay2023 | Chunk_of_surprises

Chunk_of_surprises

In this challenge, we are given a png image. But when we try to open it, we get an error. So we look at the hexadecimal inside the image and we see that the headers and the trailer are not correct.

As we can see on this website, the png header should be 89 50 4E 47 0D 0A 1A 0A but is 01 50 4E 47 0D 0A 1A 0A so the first bit is not good.

image

The second header should be IHDR but there is no IHDR so we add it by replacing the wrong hex value. We also modify the tailor as for the PNG header. image image

And we got the flag written in black at the top.

image

This post is licensed under CC BY 4.0 by the author.