Categories (pwn, web, crypto, forensics)
Jeopardy-style CTFs are organized by categories, each training different skills. Knowing them helps you pick challenges for your level, quickly identify what a challenge wants, and know which technical cards in this wiki apply to each. This card walks through the classic categories with their starting commands and tools.
The classic categories
Section titled “The classic categories”- Web — web vulnerabilities (SQLi, XSS, SSRF, SSTI, logic). Maps to the Web area.
- Pwn / binary — binary exploitation (buffer overflow, ROP, heap). See pwn-reversing.
- Reversing — reverse engineering to understand or break a binary’s logic.
- Crypto — break misused cryptography. See the Cryptography area.
- Forensics — analyze artifacts (PCAP, memory, disks, files). See DFIR and stego.
- OSINT — find information from public clues. See passive recon.
- Misc — anything: programming, puzzles, esoteric languages, network challenges.
flowchart LR
R[Jeopardy challenge] --> Q{What do they give you?}
Q -->|URL / app| W[Web]
Q -->|ELF/PE binary| P[Pwn / Reversing]
Q -->|ciphertext| C[Crypto]
Q -->|pcap / image / dump| F[Forensics]
Q -->|username / photo / clue| O[OSINT]
The same real-world vulnerabilities; you’re often given the challenge’s source code, read it. Tools: Burp, curl, ffuf, sqlmap.
# Discover hidden paths and filesffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt -u http://host/FUZZ -ic# Test a SQL injection in a controlled waysqlmap -u "http://host/item?id=1" --batch --dbsPwn (binary exploitation)
Section titled “Pwn (binary exploitation)”You’re given a binary (and sometimes its libc) and must get code execution or read the flag. First thing: check the enabled protections.
checksec --file=./challenge # NX, canary, PIE, RELRO, ASLRfrom pwn import *# Minimal exploitation template with pwntoolscontext.binary = elf = ELF('./challenge')p = process('./challenge') # remote('host', 1337) at the CTFoffset = 72 # computed with a cyclic patternpayload = flat(b'A' * offset, elf.symbols['win'])p.sendline(payload)p.interactive()Reversing
Section titled “Reversing”Understand what a binary does: almost always finding a password or the flag-validation logic. Combine static and dynamic.
file challenge && strings -n 8 challenge | grep -i flagltrace ./challenge # library calls (e.g. strcmp with the password)gdb -q ./challenge # dynamic with pwndbg/GEF- Static with Ghidra/IDA: see static analysis.
- Dynamic with gdb: see dynamic analysis and anti-debug.
Crypto
Section titled “Crypto”Misused cryptography: ECB, nonce reuse, padding oracle, weak RSA, predictable RNG. It’s almost never brute force: there’s a specific flaw.
# Typical example: RSA with a factorable nfrom Crypto.Util.number import long_to_bytes# factor n (e.g. with factordb) -> p, q -> d = inverse(e, (p-1)*(q-1))# m = pow(c, d, n); print(long_to_bytes(m))- Fundamentals and symmetric encryption, padding oracle
- Hashes, predictable RNG, PKI/RSA
- For chained transformations and decoding: CyberChef. Math with SageMath and z3.
Forensics
Section titled “Forensics”Analyze artifacts to recover the flag: network captures, memory dumps, disks and images.
# PCAP: extract objects and follow streamstshark -r capture.pcap -Y http.request -T fields -e http.host -e http.request.uri# Memory with Volatility 3vol -f memory.raw windows.pstree# Carving embedded filesbinwalk -e image.bin- Network: see network analysis / PCAP and Wireshark.
- Memory: see memory forensics. Disk: disk forensics.
- Steganography: see stego (binwalk, zsteg, steghide, spectrograms).
OSINT and misc
Section titled “OSINT and misc”OSINT starts from a public clue (a username, a photo, a domain) and turns it into the flag. Misc is a catch-all: programming, puzzles, esoteric languages.
exiftool photo.jpg # metadata: GPS, software, dates- OSINT: see passive recon, Google dorking, metadata, people.
- Misc: Python scripting to automate logic or socket-based network challenges.
In practice
Section titled “In practice”- Each category maps to a wiki area: use the technical card as reference instead of improvising.
- Start with your strong category to score fast, but broaden to the rest to grow: high-value challenges cross categories.
- The skills are transferable to real pentesting (web, AD, forensic analysis).
- Forensics and crypto in CTF are a playful way to practice DFIR and crypto.
Common mistakes
Section titled “Common mistakes”- Brute-forcing a crypto challenge that hides a specific math flaw.
- Not running
file/strings/checksecbefore diving in: you lose the challenge’s context. - Pigeonholing into one category and never touching pwn or crypto out of fear.
- Ignoring the file name and point value, which usually hint at the technique.
Checklist
Section titled “Checklist”- Identify the category from what you’re given (URL, binary, text, pcap, clue)
- Web → Web area + Burp/ffuf/sqlmap
- Pwn/reversing → pwn-reversing + pwntools/Ghidra/gdb/checksec
- Crypto → Cryptography area + CyberChef/Sage/z3
- Forensics → DFIR + binwalk/Volatility/Wireshark
- OSINT → recon + exiftool/dorking
- Start with your strength; broaden to the others
- Document the learned technique (writeups)