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-interencdecPublished: 2026-08-05 by AUKA

Interencdec: Multi-Layer Encoding & Substitution

Peeling through nested encoding layers: Base64 decoding followed by a Caesar cipher substitution to extract the flag.

Target Mission Dossier
CryptoEasy
Target Host / IP
Offline Challenge File
Operating System
Linux / Windows
Architecture
N/A
Primary Vulnerability
Multi-layered Obfuscation
Exposed Services:File Analysis
Attack Kill Chain Progress1 / 3 Steps
01

Phase 1: Reconnaissance & First-Stage Base64 Decoding

Examining the file `enc_flag` reveals an encoded ASCII string with Base64 characteristics.

studio@pwnbox:~/cylab-interencdec$
# Inspect the raw file:
cat enc_flag

# Decode first Base64 layer:
cat enc_flag | base64 -d
02

Phase 2: Secondary Decoding & Caesar Cipher Shift

The output of the first stage yields another encoded or shifted string. Inspecting the structure reveals a second layer of Base64 wrapping a Caesar-shifted flag payload.

studio@pwnbox:~/cylab-interencdec$
#!/usr/bin/env python3
import base64

with open("enc_flag", "r") as f:
    data = f.read().strip()

# Decode nested base64
decoded = base64.b64decode(data).decode('utf-8')
# Second layer decode if needed
if "b'" in decoded or "=" in decoded:
    inner = base64.b64decode(decoded).decode('utf-8')
else:
    inner = decoded

print("[*] Intermediate text:", inner)

# Caesar shift decryption:
def shift(s, n):
    return "".join(chr((ord(c) - 97 - n) % 26 + 97) if c.islower() else (chr((ord(c) - 65 - n) % 26 + 65) if c.isupper() else c) for c in s)

for k in range(26):
    res = shift(inner, k)
    if "picoCTF{" in res:
        print(f"[+] Recovered Flag (shift={k}): {res}")
studio@pwnbox:~/cylab-interencdec$
# Chaining base64 decode and rot13/caesar rotation:
cat enc_flag | base64 -d | base64 -d
# Output: wpjpHUM{...} (Caesar cipher shifted)
03

Phase 3: Flag Extraction

The final Caesar decryption layer reveals the flag:

studio@pwnbox:~/cylab-interencdec$
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 ]