Writeups PicoCTFForensicsSteganographyBinwalk

Matryoshka Doll Writeup - PicoGym

Writeup for the Matryoshka Doll challenge from PicoCTF PicoGym.

Contents

Category: Forensics

Difficulty: Medium

Points: 30

Description

A JPEG file (dolls.jpg) is provided. Like the nesting dolls it references, the image contains files hidden inside files across four layers.

Overview

Background: File Carving with Binwalk

Solution

Layer 1: dolls.jpg

Layer 2: 2_c.jpg

Layer 3: 3_c.jpg

Layer 4: 4_c.jpg

Script Summary

# Each layer: detect -> extract -> unzip -> descend
run_bash(["binwalk", "--run-as=root", "-e", "dolls.jpg"])
run_bash(["unzip", "_dolls.jpg.extracted/4286C.zip"])
# ... repeated 3 more times with progressively nested paths

Flag

picoCTF{336cf6d51c9d9774fd37196c1d7320ff}

← Back to Blog