For graph and advanced features, download the full Intel Codex Vault and open it in Obsidian.
๐ง CTF Essential Tools Setup Guide
Table of Contentsโ
- Operating System Setup
- Environment Setup
- Web Exploitation Tools
- Cryptography Tools
- Binary Analysis & Reverse Engineering
- Forensics Tools
- Network Analysis Tools
- Python Environment
- Docker Containers
- Quick Setup Script
- Tool Categories Quick Reference
- Official Resources
๐ง Operating System Setupโ
Recommended Distributionsโ
- Exegol - Containerized environments for professionals, students, CTF players, bug hunters, researchers
- Kali Linux / Parrot OS - Pre-installed security tools
- Ubuntu/Debian - Build your own toolkit
- Windows + WSL2 - For Windows users
Exegol and Kali already ship most tools below. Commands target Kali rolling, Debian 13 and Ubuntu 24.04; "Kali only" marks packages Debian/Ubuntu don't have.
Virtual Machine Setupโ
# Recommended VM specs
RAM: 8GB minimum, 16GB preferred
Storage: 100GB minimum
CPU: 4 cores minimum
๐ Environment Setupโ
Directory Structureโ
mkdir -p ~/ctf/{tools,challenges,writeups,scripts}
mkdir -p ~/ctf/challenges/{crypto,web,pwn,rev,forensics,misc}
Python: one venv + pipxโ
Debian 12+, Ubuntu 23.04+ and Kali block system-wide pip install, --user included (PEP 668, externally-managed-environment). Libraries go in one venv; standalone CLI tools go in pipx. Never sudo pip.
sudo apt install python3-venv python3-dev pipx build-essential libssl-dev libffi-dev
python3 -m venv ~/ctf/venv
. ~/ctf/venv/bin/activate # add this line to ~/.zshrc / ~/.bashrc
pipx ensurepath # puts ~/.local/bin on PATH (pipx tools, pwndbg, pwninit)
Every pip install below assumes ~/ctf/venv is active.
Shell Configuration (.bashrc/.zshrc)โ
Aliases: gl0bal01/exegol-config - zsh aliases
๐ Web Exploitation Toolsโ
Burp Suite Communityโ
sudo apt install burpsuite # Kali
# Elsewhere: run the Linux installer from https://portswigger.net/burp/communitydownload
OWASP ZAPโ
sudo apt install zaproxy # Kali only
# Elsewhere: https://www.zaproxy.org/download/
Web Utilitiesโ
# Essential web tools
sudo apt install curl wget httpie
pip install requests urllib3 beautifulsoup4 selenium scrapy # HTTP clients and scraping
# Browsers (Debian/Kali names; on Ubuntu, apt's firefox/chromium-browser only install the snap)
sudo apt install firefox-esr chromium
SQL Injectionโ
sudo apt install sqlmap
Directory & File Discovery / Fuzzingโ
sudo apt install gobuster dirb ffuf
# Feroxbuster (Rust, recursive) - Kali: sudo apt install feroxbuster
curl -sL https://raw.githubusercontent.com/epi052/feroxbuster/main/install-nix.sh | bash -s "$HOME/.local/bin"
Wordlistsโ
sudo apt install seclists # Kali only -> /usr/share/seclists
# Elsewhere: same path, from git
sudo git clone --depth 1 https://github.com/danielmiessler/SecLists.git /usr/share/seclists
Recon & Scanningโ
sudo apt install whatweb # fingerprint the web stack
# Nikto - Kali: sudo apt install nikto (2.6.1); Debian non-free / Ubuntu multiverse ship 2.1.5 [verify 2026-12-01]
git clone https://github.com/sullo/nikto ~/ctf/tools/nikto
~/ctf/tools/nikto/program/nikto.pl -h http://target.com
JWTโ
# jwt_tool (no distro package; Kali's jwt-tools is libjwt's CLI, a different tool) [verify 2026-12-01]
git clone https://github.com/ticarpi/jwt_tool ~/ctf/tools/jwt_tool
pip install -r ~/ctf/tools/jwt_tool/requirements.txt # into ~/ctf/venv
python3 ~/ctf/tools/jwt_tool/jwt_tool.py "$JWT"
๐ Cryptography Toolsโ
CyberChefโ
# Web-based: https://gchq.github.io/CyberChef/
sudo apt install cyberchef # Kali: offline copy
# Elsewhere offline: release zip from https://github.com/gchq/CyberChef/releases
Python Crypto Librariesโ
pip install pycryptodome cryptography sympy gmpy2
# SageMath (there is no "sage-math" pip package)
sudo apt install sagemath # Kali
# Debian 13 and Ubuntu 24.04 don't package it [verify 2026-12-01]; elsewhere use conda-forge (official route):
conda create -n sage sage python=3.13
RsaCtfToolโ
git clone https://github.com/RsaCtfTool/RsaCtfTool ~/ctf/tools/RsaCtfTool
cd ~/ctf/tools/RsaCtfTool && python3 -m venv venv && venv/bin/pip install -e .
~/ctf/tools/RsaCtfTool/venv/bin/RsaCtfTool --help
Command Line Toolsโ
# OpenSSL
sudo apt install openssl
# Hash cracking
sudo apt install hashcat john
# Hash identification: name-that-hash (`nth`) - Kali: sudo apt install name-that-hash
pipx install name-that-hash
Crypto Scriptsโ
# ~/ctf/scripts/crypto_utils.py
import base64
import binascii
import urllib.parse
from Crypto.Util.number import *
from Crypto.Cipher import AES
def decode_common(data):
"""Try common encoding schemes"""
encodings = [
('base64', base64.b64decode),
('hex', binascii.unhexlify),
('url', urllib.parse.unquote)
]
for name, decoder in encodings:
try:
result = decoder(data)
print(f"{name}: {result}")
except Exception:
continue
๐พ Binary Analysis & Reverse Engineeringโ
Disassemblersโ
# Ghidra 12.2 needs JDK 25 [verify 2026-12-01]
sudo apt install ghidra # Kali (pulls openjdk-25-jdk)
# Elsewhere: JDK 25 + release zip from https://github.com/NationalSecurityAgency/ghidra/releases
# openjdk-25-jdk is packaged in Debian 13 and in Ubuntu 24.04's noble-updates [verify 2026-12-01]
sudo apt install openjdk-25-jdk
unzip ghidra_*_PUBLIC_*.zip -d ~/ctf/tools && ~/ctf/tools/ghidra_*_PUBLIC/ghidraRun
# Radare2 - Kali/Ubuntu: sudo apt install radare2 (not in Debian 13); upstream recommends git [verify 2026-12-01]
git clone https://github.com/radareorg/radare2 ~/ctf/tools/radare2 && ~/ctf/tools/radare2/sys/install.sh
# Binary Ninja (commercial, has free version)
# Download from https://binary.ninja/
Debuggersโ
sudo apt install gdb
# pwndbg - official installer, user install; run `pwndbg` instead of `gdb`
curl --proto '=https' --tlsv1.2 -LsSf 'https://install.pwndbg.re' | sh -s -- -t pwndbg-gdb -u
# Alternative: GEF (loaded by plain gdb)
wget -O ~/.gdbinit-gef.py -q https://gef.blah.cat/py
echo source ~/.gdbinit-gef.py >> ~/.gdbinit
Binary Utilitiesโ
# binutils = strings, objdump, readelf, nm; bsdextrautils = hexdump
sudo apt install binutils file bsdextrautils xxd
sudo apt install ltrace strace # Library / system call tracers
pipx install binary-refinery
Pwn Helpersโ
# pwntools (into ~/ctf/venv). Exploit template: CTF_Cheat_Sheets, "pwntools Exploit Skeleton"
pip install pwntools
# ROP gadgets (pwntools already pulls ROPgadget into ~/ctf/venv)
pipx install ROPGadget ropper
# checksec (pwntools also ships `checksec` / `pwn checksec`); patchelf for swapping libc/ld
sudo apt install checksec patchelf
# pwninit: fetches matching ld + libc debug symbols, patchelfs the binary, writes solve.py
curl -fL --create-dirs -o ~/.local/bin/pwninit https://github.com/io12/pwninit/releases/latest/download/pwninit
chmod +x ~/.local/bin/pwninit
# one_gadget (execve gadgets in libc), seccomp-tools (dump/disasm seccomp filters)
sudo apt install ruby ruby-dev gcc make
sudo gem install one_gadget seccomp-tools
Symbolic Execution & Solversโ
pip install z3-solver
# angr: own venv (angr docs recommend isolation); Python >= 3.12
python3 -m venv ~/ctf/venv-angr && ~/ctf/venv-angr/bin/pip install angr
Android / APKโ
sudo apt install apktool # decode/rebuild resources + smali
# jadx needs Java 11+ [verify 2026-12-01]
sudo apt install jadx # Kali; elsewhere zip from https://github.com/skylot/jadx/releases
๐ต๏ธ Forensics Toolsโ
File Analysisโ
# File identification
sudo apt install file
# Hex editors (TUI / GUI)
sudo apt install hexedit ghex
# Foremost for file carving
sudo apt install foremost
Binwalkโ
# v2.x: 2.4.3 Debian/Kali, 2.3.4 Ubuntu 24.04 [verify 2026-12-01]. Extracts to ./_fw.bin.extracted/
sudo apt install binwalk
sudo apt install binwalk3 # Kali: v3 (Rust rewrite), command is `binwalk3`
cargo install binwalk # v3 elsewhere; extractor dependencies not included
v3 (3.1.0) keeps -e (extract) and -M (recursive, so -Me still works) but writes to ./extractions/fw.bin.extracted/ by default. The directory flag in 3.1.0 is the same as in v2, -C, --directory <dir> (v3 default: extractions); unreleased upstream master renames the short form to -d, so use --directory in scripts. Docs: binwalk wiki. [verify 2026-12-01]
Image Forensicsโ
# Steganography: stegseek is a steghide passphrase cracker (far faster than stegcracker in StegSeek's own benchmark)
sudo apt install steghide stegseek
sudo gem install zsteg # PNG/BMP LSB detection (needs ruby, see Pwn Helpers)
# StegSolve (bit planes): Java GUI, needs a JRE; jar not packaged by Kali/Debian
# Image analysis
sudo apt install libimage-exiftool-perl # provides `exiftool`
pip install pillow numpy # PIL for LSB and bit-plane scripts
# Audio steganography
sudo apt install audacity
Memory Analysisโ
# Volatility 3 - entrypoint is `vol` [verify 2026-12-01]
pipx install volatility3
# Alternative: development version from GitHub
git clone https://github.com/volatilityfoundation/volatility3.git
Disk Imagesโ
# The Sleuth Kit CLI (mmls, fls, icat, tsk_recover); apt's autopsy is the legacy 2.24 web UI [verify 2026-12-01]
sudo apt install sleuthkit autopsy
# Partition recovery + file carving (testdisk ships photorec)
sudo apt install testdisk
๐ก Network Analysis Toolsโ
Wiresharkโ
sudo apt install wireshark tshark # answer "Yes" to "non-superusers capture packets?"
sudo usermod -a -G wireshark $USER # Add user to wireshark group, then log out/in
sudo dpkg-reconfigure wireshark-common # if you answered "No" or installed non-interactively
Network Utilitiesโ
# Scanning and enumeration
sudo apt install nmap zenmap ncat # ncat: nmap's netcat, has --exec / --sh-exec
sudo apt install netcat-openbsd socat
# DNS tools (dig, nslookup)
sudo apt install bind9-dnsutils
Protocol Analysisโ
# TShark command examples
tshark -r capture.pcap -Y "http" -T fields -e http.request.uri
tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name
๐ Python Environmentโ
General-Purpose Librariesโ
# In ~/ctf/venv (see Environment Setup). Libraries tied to one challenge category are
# installed in that category's section above; these are the cross-category ones.
pip install numpy matplotlib # bit-plane and LSB scripts, plots
pip install pandas jupyter # data analysis
pwntools is installed under Pwn Helpers; the exploit skeleton is in CTF Cheat Sheets.
๐ณ Docker Containersโ
CTF-Ready Containersโ
# Kali Linux in Docker
docker run -it kalilinux/kali-rolling
Docker CTF Imagesโ
# ~/ctf/Dockerfile
FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3 python3-venv python3-dev build-essential libssl-dev libffi-dev \
curl wget git \
binutils file bsdextrautils xxd \
netcat-openbsd socat \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/venv && /opt/venv/bin/pip install pwntools requests pycryptodome
ENV PATH="/opt/venv/bin:$PATH"
WORKDIR /ctf
CMD ["/bin/bash"]
โก Quick Setup Scriptโ
#!/usr/bin/env bash
# ~/ctf/setup.sh - Quick CTF environment setup (Kali / Debian 13 / Ubuntu 24.04)
set -euo pipefail
echo "Setting up CTF environment..."
# Create directory structure
mkdir -p ~/ctf/{tools,challenges,writeups,scripts}
mkdir -p ~/ctf/challenges/{crypto,web,pwn,rev,forensics,misc}
# Install essential packages (noninteractive: wireshark keeps root-only capture, see Wireshark section)
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 python3-venv python3-dev pipx build-essential libssl-dev libffi-dev \
git curl wget \
file binutils bsdextrautils xxd hexedit \
netcat-openbsd socat \
nmap wireshark tshark \
gobuster dirb ffuf sqlmap \
hashcat john gdb
# Python packages in a venv (PEP 668)
python3 -m venv ~/ctf/venv
~/ctf/venv/bin/pip install \
pwntools requests pycryptodome \
beautifulsoup4 pillow \
z3-solver
pipx ensurepath
# Install pwndbg (user install -> ~/.local/bin/pwndbg)
curl --proto '=https' --tlsv1.2 -LsSf 'https://install.pwndbg.re' | sh -s -- -t pwndbg-gdb -u
echo "CTF environment setup complete!"
echo "Don't forget to:"
echo "1. Download and install Burp Suite"
echo "2. Install JDK 25 + Ghidra"
echo "3. Configure your shell aliases and activate ~/ctf/venv"
๐ Tool Categories Quick Referenceโ
By Challenge Typeโ
| Category | Primary Tools | Secondary Tools |
|---|---|---|
| Crypto | CyberChef, Python, OpenSSL | SageMath, RsaCtfTool, Hashcat, John, name-that-hash |
| Web | Burp Suite, curl, Browser | ZAP, ffuf, Gobuster, sqlmap, jwt_tool, WhatWeb, Nikto, SecLists |
| Pwn | GDB + pwndbg, pwntools, Ghidra | ROPgadget, ropper, one_gadget, pwninit, patchelf, checksec, seccomp-tools |
| Rev | Ghidra, GDB, strings | Radare2, IDA, Binary Ninja, angr, z3, jadx, apktool |
| Forensics | Binwalk, Wireshark, file, exiftool | Volatility 3, Sleuth Kit/Autopsy, TestDisk/PhotoRec, steghide, stegseek, zsteg, StegSolve |
| Misc | Python, Linux utils | Custom scripts |
Installation Priorityโ
Phase 1 (Essential)โ
- Python 3 + venv + pipx
- Git
- Basic Linux utilities (file, binutils, bsdextrautils, xxd)
- Text editor (vim/nano/vscode)
- Web browser with dev tools
Phase 2 (Important)โ
- Burp Suite Community
- GDB + pwndbg
- Ghidra + JDK 25
- Wireshark
- Python libraries (pwntools, requests, pycryptodome)
- checksec, ROPgadget
Phase 3 (Advanced)โ
- Web: sqlmap, ffuf
- Pwn: one_gadget, pwninit, patchelf, seccomp-tools, ropper
- Crypto: RsaCtfTool, SageMath
- Forensics: stegseek, zsteg, Volatility 3, Sleuth Kit/Autopsy
- Rev/mobile: angr, jadx, apktool
- Commercial tools (if budget allows)
- Custom automation scripts
๐ Official Resourcesโ
Tool Websitesโ
- Burp Suite: https://portswigger.net/burp
- Ghidra: https://ghidra-sre.org/
- Wireshark: https://www.wireshark.org/
- CyberChef: https://gchq.github.io/CyberChef/
Documentationโ
- Pwntools: https://docs.pwntools.com/
- pwndbg setup: https://pwndbg.re/stable/setup/
- Radare2: https://book.rada.re/
- GDB: https://www.gnu.org/software/gdb/documentation/
- SageMath install: https://doc.sagemath.org/html/en/installation/
Related Guidesโ
CTF Getting Started ยท Methodology ยท Cheat Sheets ยท RE SOP ยท Forensics SOP
Last Updated: 2026-12-01