Pwntools

From yv1ing/Z3r0 · View interactive version

Pwntools is an AI agent skill from the GitHub repository yv1ing/Z3r0. Use preinstalled pwntools for authorized exploit prototyping, binary interaction, cyclic patterns, packing, and shellcraft tasks.

How to use this skill

Skill file

pwntools

Use pwntools for authorized exploit prototyping, binary interaction, cyclic patterns, packing helpers, shellcraft tasks, and its bundled helper CLIs such as pwn and checksec.

Help first

Before constructing commands, use installed CLI help and the preinstalled pwntools Python environment:

pwn --help
pwn_python="$(dirname "$(readlink -f "$(command -v pwn)")")/python"
"$pwn_python" -c 'from pwn import context; print(context.arch)'

Usage rules

Common workflows

Generate and locate cyclic patterns:

pwn cyclic 200
pwn cyclic -l 0x6161616b

Run a task-scoped script without global installs:

pwn_python="$(dirname "$(readlink -f "$(command -v pwn)")")/python"
"$pwn_python" exploit.py

Minimal local interaction template:

from pwn import *

context.binary = elf = ELF("./binary")
io = process(elf.path)
io.sendlineafter(b"> ", b"input")
io.interactive()

Use remote(host, port) only for explicitly authorized challenge services or test infrastructure.

Output

Report script path, command used, target scope, generated artifacts, key offsets or primitives, and validation status.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.