Challenges › Steganography

Recover the Hidden Message

easy · 50 XP · flag · free · solves: 0

A garden club hid two short messages in two pictures. Each picture uses a different method. You need both messages.

Part 1: meadow.png. The first message is in the lowest bit of the red channel. Read the pixels left to right across each row, from the top row to the bottom row. Each group of eight bits is one byte, most significant bit first. A zero byte (00000000) ends the message. Two helper scripts do the work for you:

python3 bitview.py meadow.png --channel red
python3 bitview.py meadow.png --channel red | python3 decode.py

bitview.py shows the bits in groups of eight. decode.py turns the groups into text and stops at the zero byte. Both scripts need only Python 3.

Part 2: greenhouse.jpg. The second message was hidden with steghide. The passphrase is tomato-vine-42. Use steghide extract with this passphrase and read the text file that it writes.

The flag. Join the two messages with one underscore, the PNG message first, and put them inside CSEMA{}. For example, the messages blue_sky and old_tree give CSEMA{blue_sky_old_tree}.

Tags: learn

Try next