HackBlue

Labs / CTF warm-ups

Text hiding inside a picture

An image file carries readable text in a metadata chunk and after its end marker. Use file and strings to find the comment, the author, and the flag.

  • Terminal mission
  • Beginner
  • 3 objectives
  • 0 of 3 solved

What you’re looking at

An image file carries readable text in a metadata chunk and after its end marker. Use file and strings to find the comment, the author, and the flag.

Your goal: Find text hidden inside a picture’s metadata and after its end marker.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

The challenge is ~/challenge/sunset.png. It opens as a normal picture.

Many formats allow text chunks, and most viewers ignore bytes after the end of the image. strings prints every run of four or more printable characters, which is often enough.

analyst@ctf-box

ctf-box · CTF warm-ups

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 233 words, about 2 min. It gives away every answer, so try the steps first.