pwn-chain
Skill by sickn33
Guides exploit development from a known binary vulnerability to a working exploit, covering stack, heap and kernel pwn with pwntools. Intended for CTF challenges and systems the user is authorized to test.
Install pwn-chain
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/pwn-chain ~/.claude/skills/pwn-chainRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/pwn-chain ~/.gemini/antigravity-cli/skills/pwn-chainAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill covers the step from a known memory corruption bug to a working exploit. It describes a workflow: check binary protections with checksec, choose an exploit strategy, find libc and gadgets, write a pwntools template, test locally, then stabilize the exploit against a remote target. It includes reference notes for stack, heap and kernel pwn and names tools such as ROPgadget, one_gadget and libc-database.
It is written for CTF players and security testers who already know where a program fails. The skill states that it does not find vulnerabilities. It requires explicit written authorization and a confirmation step before any command touches a target. Without that confirmation, it stays read-only and gives defensive guidance only.
Written from the project's SKILL.md and checked against it.
What it can do
- Protection checkUses checksec, file and readelf to identify NX, canary, PIE, RELRO and Fortify.
- Strategy selectionSuggests an exploit path such as shellcode, ret2libc, a heap technique or kernel ROP based on protections.
- libc and gadget lookupCovers libc-database lookup, ROPgadget searches and one_gadget candidates for a given libc.
- pwntools templateProvides a local process and gdb debugging template, then a switch to a remote target.
- Remote stabilizationLists fixes such as stack alignment, exact recvuntil anchors and sendlineafter for unstable remotes.
- Kernel pwn notesDescribes kernel ioctl bugs, KASLR leaks, modprobe_path and SMEP and SMAP considerations.
- Authorization gateAsks for the exact target, written permission and scope, then waits for confirmation before running commands.
What you need
- Python with pwntools installed via pip
- Ruby for one_gadget
- gdb with GEF or pwndbg for debugging
- qemu-system-x86_64 for kernel challenges
Try asking
- Check the protections on ./vuln and suggest an exploit strategy.
- Write a pwntools template for this stack overflow in my CTF binary.
- Find ROP gadgets and one_gadget candidates for this libc.so.6 file.
Good to know
- For educational use or authorized assessments with written permission only.
- Starts from a known vulnerability and does not discover bugs.
- Commands against a target need explicit confirmation of target and scope.
- Full RELRO, CFI and MTE raise exploit difficulty substantially.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pwn-chain/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md10 KB -
references/heap-pwn.md9 KB -
references/kernel-pwn.md12 KB -
references/stack-pwn.md9 KB
Alternatives to pwn-chain
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
pwn-chain: common questions
Does this skill find vulnerabilities?
No. The source says it assumes the bug is already known and only writes the exploit from that point. Discovery is handled by fuzzing or auditing.
Which tools does it reference?
It references pwntools, ROPgadget, Ropper, one_gadget, libc-database, GEF, pwndbg, qemu, binwalk and patchelf.
Can it attack a remote host right away?
No. Before any command that probes or exploits a target, it asks for the exact target, written authorization and scope, then waits for explicit confirmation.
How do I install pwn-chain?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pwn-chain free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pwn-chain safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pwn-chain?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
