Skip to content
Pwnversity
CTF-CATEGORIASintermediate · 6 min · upd. 2026-10

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.

  • 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.

Ventana de terminal
# Discover hidden paths and files
ffuf -w /usr/share/seclists/Discovery/Web-Content/common.txt -u http://host/FUZZ -ic
# Test a SQL injection in a controlled way
sqlmap -u "http://host/item?id=1" --batch --dbs

You’re given a binary (and sometimes its libc) and must get code execution or read the flag. First thing: check the enabled protections.

Ventana de terminal
checksec --file=./challenge # NX, canary, PIE, RELRO, ASLR
from pwn import *
# Minimal exploitation template with pwntools
context.binary = elf = ELF('./challenge')
p = process('./challenge') # remote('host', 1337) at the CTF
offset = 72 # computed with a cyclic pattern
payload = flat(b'A' * offset, elf.symbols['win'])
p.sendline(payload)
p.interactive()

Understand what a binary does: almost always finding a password or the flag-validation logic. Combine static and dynamic.

Ventana de terminal
file challenge && strings -n 8 challenge | grep -i flag
ltrace ./challenge # library calls (e.g. strcmp with the password)
gdb -q ./challenge # dynamic with pwndbg/GEF

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 n
from 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))

Analyze artifacts to recover the flag: network captures, memory dumps, disks and images.

Ventana de terminal
# PCAP: extract objects and follow streams
tshark -r capture.pcap -Y http.request -T fields -e http.host -e http.request.uri
# Memory with Volatility 3
vol -f memory.raw windows.pstree
# Carving embedded files
binwalk -e image.bin

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.

Ventana de terminal
exiftool photo.jpg # metadata: GPS, software, dates
  • 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.
  • Brute-forcing a crypto challenge that hides a specific math flaw.
  • Not running file/strings/checksec before 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.
  • 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)