ctf-pwn is the binary exploitation skill of the ctf-skills collection. It gives an agent an index of memory corruption topics for capture-the-flag challenges where a vulnerable native program or service is already identified, together with pwntools template scripts and a set of past challenge writeups.
The main file covers source code red flags, race conditions, protection implications, stack overflows, ROP chain building, format strings, kernel work and sandbox escape. Reference files cover heap techniques, kernel topics, advanced primitives and an attack playbook.
What You Get
- A prerequisites list with pinned pwntools and ROP tool versions
- Quick-start commands and a list of source code red flags
- Five pwntools template scripts with generator-style payloads for ret2libc, SROP, shellcraft, format string and seccomp cases
- Reference files on heap, format string, ROP, kernel, sandbox escape and advanced primitives
- A folder of writeups for a set of pwn practice challenges
Common Use Cases
- Choosing an approach for a challenge binary from its protections and bug type
- Starting from a template script and adapting offsets and gadgets for a challenge target
- Reading a heap technique reference while working on a menu-style challenge
- Looking up kernel exploitation topics for a kernel module challenge
What Makes It Unique
The skill combines a topic index with runnable pwntools templates and a large set of written-up challenges, and it states how each mitigation changes the plan. It also names the stage at which the reverse engineering skill should come first.
Under The Hood
The skill ships five Python template scripts that use pwntools to start a local process or connect to a host and port given as arguments, send payloads and open an interactive session. The instructions tell the agent to install tools with pip, apt, Homebrew and gem, run debuggers and exploit scripts against challenge binaries and remote challenge services, and in some entries run commands on a compromised challenge target to read the flag. Its frontmatter allows shell, file writes, web fetch and web search. The material is written for competition and practice targets.