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-binary-digitsPublished: 2026-08-18 by AUKA

Binary Digits: ASCII Bitstream to Image

Parsing a raw ASCII bitstream (0s and 1s) from digits.bin and converting it to binary bytes to uncover an image.

Target Mission Dossier
ForensicsEasy
Target Host / IP
Offline Challenge File
Operating System
Linux / Windows
Architecture
N/A
Primary Vulnerability
Binary Data Concealment
Exposed Services:File & Forensic Analysis
Attack Kill Chain Progress1 / 3 Steps
01

Phase 1: Inspecting the Bitstream File

The challenge provides a file `digits.bin`. Opening or running `head` on it reveals that it is not raw binary bytes, but an ASCII text file filled with characters `'0'` and `'1'`.

studio@pwnbox:~/cylab-binary-digits$
# View the initial contents:
head -c 100 digits.bin
# Output: 01001001010001010100111001000111...
02

Phase 2: Binary Parsing & Image Extraction

We convert every 8 characters of `'0'` and `'1'` into a single 8-bit byte to reconstruct the actual underlying file. Alternatively in CyberChef, apply the recipe: - **From Binary** (Byte delimiter: None) - Render Image

studio@pwnbox:~/cylab-binary-digits$
#!/usr/bin/env python3
with open("digits.bin", "r") as f:
    bitstring = f.read().replace(" ", "").replace("\n", "").strip()

# Convert bitstring to bytes
byte_array = bytearray()
for i in range(0, len(bitstring), 8):
    byte = bitstring[i:i+8]
    if len(byte) == 8:
        byte_array.append(int(byte, 2))

# Write recovered file
with open("recovered_image.png", "wb") as f:
    f.write(byte_array)

print("[+] Converted bitstream to recovered_image.png")
03

Phase 3: Flag Capture

Opening `recovered_image.png` displays the rendered flag:

studio@pwnbox:~/cylab-binary-digits$
Flag: [REDACTED - Click "Reveal Flag" below]

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 ]