pwn-setup

pwn-setup is a command for Claude Code from allsmog/pwn-claude-plugin. It costs 15 tokens per session (680 once invoked), scanned A, original, MIT.

A setup check for binary-exploitation tools, including Python, pwntools, GDB, checksec, ROPgadget, ropper, one_gadget, seccomp-tools, and pwndbg. Binary exploitation means studying or attacking compiled programs by manipulating their memory or execution.

In plain words
What is it for?
Use it to verify your exploit-development environment, check GDB extensions, and create a workspace for analyzing vulnerable binaries.
Why use it?
It shows which tools are installed before you begin, so missing dependencies do not interrupt exploit development. It can also prepare a workspace for that work.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the pwn-htb plugin — 7 skills, 16 commands, 3 agents, 2 hooks shipped together

Good fit Use it to verify your exploit-development environment, check GDB extensions, and create a workspace for analyzing vulnerable binaries.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/allsmog/pwn-claude-plugin/pwn-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/allsmog/pwn-claude-plugin

Made for: Claude Code.

Or install pwn-htb, the plugin that ships this one along with the rest of its 7 skills, 16 commands, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwn-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/allsmog/pwn-claude-plugin/pwn-setup.svg)](https://agentmods.dev/commands/allsmog/pwn-claude-plugin/pwn-setup)
Your own site
<a href="https://agentmods.dev/commands/allsmog/pwn-claude-plugin/pwn-setup"><img src="https://agentmods.dev/badge/commands/allsmog/pwn-claude-plugin/pwn-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 680 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00680
Opus 5 $0.00008 $0.00340
Sonnet 5 $0.00003 $0.00136
Haiku 4.5 $0.00002 $0.00068

Measured 7d ago against content hash 22f31366ec4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

pwn-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pwn-htb/commands/pwn-setup.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PWN Setup - Environment Verification

Verify binary exploitation tools are installed and optionally create a workspace structure.

Execution Steps

Step 1: Check Core Tools

Verify essential tools:

# Python and pwntools
python3 --version
python3 -c "from pwn import *; print(f'pwntools {pwnlib.version.__version__}')"

# GDB
gdb --version

# checksec
checksec --version 2>/dev/null || python3 -c "from pwn import *; print('checksec available via pwntools')"

Step 2: Check Recommended Tools

Check additional tools:

# ROPgadget
python3 -c "import ROPGadget" && echo "ROPgadget: OK" || echo "ROPgadget: MISSING (pip install ROPgadget)"

# ropper
python3 -c "import ropper" && echo "ropper: OK" || echo "ropper: MISSING (pip install ropper)"

# one_gadget
which one_gadget && echo "one_gadget: OK" || echo "one_gadget: MISSING (gem install one_gadget)"

# seccomp-tools
which seccomp-tools && echo "seccomp-tools: OK" || echo "seccomp-tools: MISSING (gem install seccomp-tools)"

Step 3: Check GDB Extensions

# Check for pwndbg
gdb -q -batch -ex "python import pwndbg; print('pwndbg: OK')" 2>/dev/null || echo "pwndbg: NOT DETECTED"

Step 4: Auto-Install (if --install flag)

If --install flag provided and missing tools detected:

# Install Python packages
pip install pwntools ROPgadget ropper

# Ruby gems (inform user, don't auto-run)
echo "For Ruby tools, run: gem install one_gadget seccomp-tools"

Step 5: Create Workspace (Optional)

Ask user if they want to create workspace structure:

mkdir -p challenge/{core,libc}
touch challenge/{exploit.py,notes.md,.gdbinit}

Output Format

## Environment Setup

### Tool Status
| Tool | Status | Version |
|------|--------|---------|
| Python | OK | 3.11.0 |
| pwntools | OK | 4.11.0 |
| GDB | OK | 13.2 |
| pwndbg | OK | - |
| ROPgadget | OK | - |
| ropper | MISSING | - |
| one_gadget | OK | 2.1.0 |
| seccomp-tools | MISSING | - |

### Missing Tools
- ropper: `pip install ropper`
- seccomp-tools: `gem install seccomp-tools`

### Workspace
Not created (use --install to create)

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 100 lines · 15 tokens per session scan A 22f31366ec4b

Subscribe to this mod's changes

pwn-setup is a command published in the GitHub repository allsmog/pwn-claude-plugin (2 stars, last pushed 6mo ago), licensed MIT. It adds 15 tokens to every session and 680 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.