ctf-pwn
Agent skill fromljagiello/ctf-skills
Provides binary exploitation techniques for CTF challenges. Use when you already have a vulnerable native target or service and need to turn memory corruption or low-level primitives into code execution or privilege escalation, such as buffer overflows, format strings, heap bugs, ROP, ret2libc, shellcode, kernel exploitation, seccomp bypass, sandbox escape, or Windows/Linux exploit chains. Do not use it when the main blocker is understanding what the binary does; use reverse engineering first. Do not use it for pure web bugs, disk or packet forensics, or standalone crypto/math challenges.
How to install ctf-pwn
npx skills add ljagiello/ctf-skills# or add only this skill to Claude Code: copy the folder
ctf-pwn/
# into
~/.claude/skills/ctf-pwn/ (all projects)
.claude/skills/ctf-pwn/ (one project)
1# CTF Binary Exploitation (Pwn)23Quick reference for binary exploitation (pwn) CTF challenges. Each technique has a one-liner here; see supporting files for full details.45## Prerequisites67**Python packages (all platforms):**8```bash9pip install "pwntools==4.15.0" "ROPgadget==7.7" "ropper==1.13.13"10# or via script: bash scripts/install_ctf_tools.sh python11```1213**uv alternative:**14```bash15uv venv && uv pip install "pwntools==4.15.0" "ROPgadget==7.7" "ropper==1.13.13"16```1718**Linux (apt):**19```bash20apt install gdb binutils strace ltrace qemu-system-x8621```2223**Optional cross-arch (ARM/MIPS — Debian/Ubuntu):**24```bash25apt install qemu-user qemu-user-static gdb-multiarch binutils-multiarch libc6-armhf-cross libc6-arm64-cross libc6-mips-cross26```2728**macOS (Homebrew):**29```bash30brew install gdb binutils qemu31```3233**Ruby gems (all platforms):**34```bash35gem install one_gadget seccomp-tools36```3738**Manual install:**39- pwndbg — Linux: [GitHub](https://github.com/pwndbg/pwndbg), macOS: `brew install pwndbg/tap/pwndbg-gdb`40- checksec — included with pwntools (`checksec --file=binary`)4142**MCP servers (optional):** WinDbg MCP ([svnscha/mcp-windbg](https://github.com/svnscha/mcp-windbg)) for Windows crash dumps, live breakpoint-driven exploitation, and kernel/driver debugging; IDA Pro MCP / Ghidra MCP for decompiling the vulnerable function — see [tools-mcp.md](tools-mcp.md).4344## Additional Resources45…
Excerpt shown under the repository's MIT license.
