DROPDOWN QUAKE HUD // TACTICAL SHELL
AUKA CTF Writeup Vault — Quake HUD Shell v3.1
Type 'help' for tactical commands or 'ls' to list catalog.
studio@vault:~$
AUKACTFVAULT._.
MISSION WRITEUP ID: cylab-flag-in-flamePublished: 2026-08-20 by AUKA

Flag in Flame: Base64 Log Carving & OCR Extraction

Carving a massive Base64-encoded PNG image concealed within system logs and decoding an embedded hex string using OCR.

Target Mission Dossier
ForensicsEasy
Target Host / IP
Offline Challenge File
Operating System
Linux
Architecture
x86_64
Primary Vulnerability
Log File Steganography
Exposed Services:Log Analysis & OCR
Attack Kill Chain Progress1 / 3 Steps
01

Phase 1: Log Inspection & Payload Carving

A huge log file `logs.txt` was flagged by a SOC team. Reviewing the contents reveals that normal log events end abruptly and are replaced by a massive continuous Base64 payload block.

studio@pwnbox:~/cylab-flag-in-flame$
# Inspect log structure:
head -n 20 logs.txt
tail -n 20 logs.txt

# Base64 decode the embedded blob into an image file:
base64 -d logs.txt > logs.png
02

Phase 2: OCR Text Recognition with Tesseract

The decoded image `logs.png` displays graphical text containing a hexadecimal string. To extract it accurately without manual transcription error, we use Tesseract OCR:

studio@pwnbox:~/cylab-flag-in-flame$
# Run OCR on the decoded image:
tesseract logs.png ocr_output -l eng

# View the extracted hex string:
cat ocr_output.txt
03

Phase 3: Hex Decoding & Flag Recovery

Converting the discovered hex string back to ASCII characters produces the challenge flag:

studio@pwnbox:~/cylab-flag-in-flame$
Flag: [REDACTED - Click "Reveal Flag" below]
studio@pwnbox:~/cylab-flag-in-flame$
# Convert hex to raw ASCII:
echo -n "7069636f4354467b666f72656e736963735f616e616c797369735f69735f616d617a696e675f62396163346362397d" | xxd -r -p

Final Target Proof of Compromise

Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}
AUKA CTF Writeup Vault — Official Field Handbook
[ Open Terminal Shell ]•[ Back to Top ]