kashiCTF 2026 - Conquer
I like to save my files as pdfs. Kashi kings hate 184.
Initial Analysis
The file is named flag.pdf, but standard PDF analysis
tools fail to recognize it:
1 | pdfid flag.pdf |
Using the file command reveals its true identity:
1 | file flag.pdf |
The challenge hint “Kashi kings hate 184” suggests that the height of the image (currently 150) has been tampered with and should likely be 184.
Extraction & Decoding
Netpbm (PPM) files use a plain-text header. We can repair the height
by editing the file header. Opening the file in a hex editor or a text
editor like vim (using :set binary or simply
editing the ASCII header) reveals:
1 | P6 |
Change the height value from 150 to
184:
1 | P6 |
After saving the change, the image can be opened with a standard image viewer to reveal the flag.