01Box Office

TryHackMe Sidequests 2026 · SQ2 Writeup

TryHackMe Sidequests 2026 SQ2 Room Logo
SQ2 BoxOffice

Look deep within the Yeti's reel.

The Bandit Yeti sent a video message. Inspect the trailing MP4 free atom, overwrite the first 64 bytes with the hidden ELF64 header, and solve the Sokoban TUI to recover the code.

MP4 Atoms · Trailing Free Box · Polyglot ELF64 · BFS Sokoban · Format ABC-DEFGH

MP4 Polyglot · Attack Summary

MP4 → ELF64 → Sokoban → Flag

Five-Stage Solve · Video Only · 46.12 s 1080p25

01 · Atom

free (7,487B)

Extra trailing atom at 0x963C87 after mdat.

02 · Poem

64 Runes

Four-line clue + 128 hex chars = ELF64 header.

03 · Patch

data[:64]

Overwrite video head, keeping code at EOF.

04 · Puzzle

127 Moves

BFS solves the Sokoban TUI in WASD controls.

05 · Code

BCA-BGHCD

Top tile row read left-to-right with hyphen.

02Key Techniques

Container Polyglots & Search

Nothing in the frames. Everything in the atoms.

  • 01 · ContainerISO BMFF

    Trailing Free Atom

    Video, audio, and spectrograms were completely clean. Parsing the MP4 atom tree revealed a 7,487-byte free box appended after mdat.

  • 02 · PolyglotELF64

    In-Place ELF Header

    Patching only the first 64 bytes turns the entire 9.8 MB MP4 into one PT_LOAD segment whose e_phoff and e_entry point right into the trailing atom.

  • 03 · AutomationBFS

    Sokoban State Search

    Tracking player + 4 crate coordinates in Python BFS finds the exact 127-move wasd sequence—avoiding the r reset trap.

03Walkthrough

MP4 → ELF64 → Sokoban

From video container to executable.

Step 01MP4 Structure

Follow the Atoms

Parsing the top-level MP4 boxes shows ftyp, moov, free, mdat (9,809,438 bytes), and a second 7,487-byte free box starting at 0x963C87 through EOF (0x9659C6). Dumping it reveals a poem, a 128-char hex string, and raw machine code.

Step 0264-Byte ELF64 Header

Decode the Poem & Runes

"Strike the head from the reel, sixty-four runes overwrite" means overwriting the first 64 bytes of the MP4 with the decoded 64-byte ELF64 header. Its e_phoff (0x963dde) and e_entry (0xd63e16) point straight into the trailing atom.

A video I leave for the fools who ascend,
but films become fangs when the first bytes you bend.
Strike the head from the reel, sixty-four runes overwrite,
and the elf beneath wakes to greet you tonight. — The Bandit Yeti, hidden in the trailing free atom
Python · Patch First 64 Bytes & Run ELF64
# Extract the 64-byte ELF64 header from the trailing free atom (0x963C87..0x9659C6)
VIDEO = "challenge-1794812965658_2.mp4"
data = bytearray(open(VIDEO, "rb").read())

free = data[9845895:9853382]
payload = free[8:]
header = bytes.fromhex(payload[205:333].decode())

# Overwrite the first 64 bytes of the MP4, keeping program header & code at EOF
data[:64] = header
open("yeti_patched", "wb").write(data)

$ cp yeti_patched /tmp/ && chmod +x /tmp/yeti_patched && /tmp/yeti_patched
ELF64 Field Value Meaning
e_entry 0xd63e16 Entry point: original file offset 0x963e16 + p_vaddr
e_phoff 0x963dde Program header table inside the trailing free atom
p_offset / p_vaddr 0 / 0x400000 Maps the entire patched MP4 into memory as one PT_LOAD segment
p_filesz / p_memsz 0x9659c6 Exact size of the original MP4 video

04The Sokoban Puzzle

12×8 Grid · BFS Solver

Push crates A B C D onto tiles left-to-right.

Initial Board

Start
wall tile crate player

Solved Board

BCA BGHCD
wall tile crate player
WASD · 127-Move Solution (Note: 'r' resets level, use wasd)
wdwsaaasaawwdwwddsddwddsdsdsaaaaaaddwwddaaaaswwaassdaassddwddsdwdddwwaaaaaswwaassdsdddwsaawwddwdddsssaaawwaassdsdwwwddaassdddww

05Recovered Code

Verified · SideQuest 02 Complete

SideQuest 02 · Box Office Solved

The reel wakes up.

With crates A–D placed on letter tiles in ascending left-to-right order, the top row reads BCA BGHCD. Turning the gap into a hyphen matches the required ABC-DEFGH format.

  • MP4 Free Atom
  • ELF64 Patched
  • Code Captured

Recovered Code · SQ2

BCA-BGHCD

Solved Board · Top Row

Raw tile sequence after pushing crates A–D into ascending left-to-right order.

BCA BGHCD

Final Submission · ABC-DEFGH

Formatted answer for the TryHackMe SQ2: Box Office room.

BCA-BGHCD