/ctf-security:pwn-general-methodologyfrom ctf-security
General CTF binary exploitation workflow, reconnaissance methodology, tool selection guide, and systematic problem-solving approach for pwn challenges. Use when starting a new CTF binary challenge, unsure which exploitation technique to use, need a systematic approach to binary analysis, or want guidance on tool selection (gdb vs ltrace vs strings). Includes complete workflow from initial recon to exploitation, common CTF patterns, and troubleshooting guides.
Ships in ctf-security. 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.
Read when SKILL.md points to them; scripts run unread.
Complete systematic approach to solving CTF binary exploitation challenges.
# 1. File type and architecture
file binary
# Output: ELF 64-bit LSB executable, x86-64
# 2. Check protections
checksec --file=binary
# NX, PIE, ASLR, Canaries?
# 3. Find interesting strings
strings binary | grep -E 'flag|/bin/sh|win'
# 4. Quick dynamic test
./binary
# Understand input/output behavior
# 1. Decompile (choose one)
ghidra binary # GUI, comprehensive
ida binary # Professional
radare2 binary # CLI
# 2. Identify vulnerability
# Look for: gets(), strcpy(), scanf("%s"), no bounds checking
# 1. Library call tracing
ltrace ./binary
# See strcmp(), system(), etc.
# 2. Debugging
gdb ./binary
# Set breakpoints, examine memory, find crash offset
# 1. Find offset (if buffer overflow)
pattern = cyclic(200)
offset = cyclic_find(crash_value)
# 2. Build exploit
payload = b'A' * offset + p64(target)
# 3. Test locally, then remotely
Check protections first (checksec):
NX enabled?
├─ Yes → Use ROP (no shellcode on stack)
│ ├─ PIE enabled?
│ │ ├─ Yes → Need information leak
│ │ └─ No → Direct ROP chain
│ └─ Canary enabled?
│ ├─ Yes → Leak or bypass canary
│ └─ No → Standard buffer overflow
└─ No → Can inject shellcode
Common vulnerability patterns:
gets(buf) → Buffer overflowprintf(user_input) → Format stringmalloc/free bugs → Heap exploitation| Task | Best Tool | Alternative |
|---|---|---|
| Check protections | checksec | readelf -l |
| Find strings | strings | rabin2 -z |
| Disassemble | objdump -d | radare2 |
| Decompile | Ghidra | IDA, Binary Ninja |
| Debug | gdb/pwndbg | radare2 |
| Trace library calls | ltrace | frida |
| Trace syscalls | strace | - |
| Find ROP gadgets | ropper | ROPgadget |
| Exploit framework | pwntools | - |
Binary has a win() function that prints flag:
payload = b'A' * offset + p64(exe.sym['win'])
# ROP to system("/bin/sh")
payload = b'A' * offset
payload += p64(pop_rdi) + p64(binsh) + p64(exe.plt['system'])
# Stage 1: Leak libc
rop.puts(exe.got['puts'])
rop.main()
# Stage 2: Calculate and exploit
libc.address = leaked - libc.sym['puts']
rop.system(binsh)
pwntools basics: See references/pwntools_cheatsheet.md
gdb commands: See references/gdb_cheatsheet.md
Common one-liners: See references/oneliners.md
Exploit crashes immediately → Check offset with cyclic pattern
Works locally, fails remotely → Different libc version, check addresses
Segfault in movaps
→ Stack alignment, add ret gadget
Shell opens but closes → Need interactive() or keep-alive
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/crypto-classical-ciphersSolve classical cipher CTF challenges including Caesar cipher, ROT-N, Vigenère cipher with Autokey variant, substitution ciphers (monoalphabetic and polyalphabetic), transposition ciphers (rail-fence, columnar), Playfair cipher, and other historical encryption methods. Use when analyzing text-only ciphertext, challenges mentioning historical or classical ciphers, frequency analysis opportunities, or when ciphertext contains only letters without numbers. Includes automated solvers for Caesar/ROT-N with all 26 shifts, Vigenère key recovery using Kasiski examination and index of coincidence, frequency analysis for substitution ciphers, dcode.fr and CyberChef integration, complete statistical analysis tools, and English/Italian language frequency tables for OliCyber.IT challenges. Beginner-friendly entry point to CTF cryptography./crypto-general-methodologyComprehensive methodology for solving CTF cryptography challenges including workflow guidance, cipher identification, reconnaissance techniques, tool selection strategy, and challenge categorization. Use when approaching any crypto CTF challenge, need to identify unknown ciphers or encodings, select appropriate tools (dcode.fr, factordb, CyberChef, SageMath, RsaCtfTool), develop attack strategies, or understand crypto challenge patterns. Covers classical ciphers, RSA, AES, block ciphers, PRNG, hash functions, zero-knowledge proofs, encoding detection, and cross-category exploitation techniques. Includes decision trees, cheatsheets for SageMath and PyCryptodome, and systematic approaches for reconnaissance and cryptanalysis./crypto-rsa-attacksExploit RSA vulnerabilities in CTF challenges including factorization attacks (factordb lookup, Fermat factorization, Pollard rho), Wiener's attack on small private exponents, small public exponent attacks (low e, Hastad broadcast), common modulus attacks, padding oracle attacks, multi-prime RSA, Franklin-Reiter related message attacks, and Coppersmith methods. Use when analyzing RSA encryption challenges, working with public keys (n, e, d, p, q, c parameters), attacking weak RSA implementations, recovering plaintexts from RSA ciphertexts, exploiting mathematical relationships in RSA systems, or factoring composite numbers. Includes RsaCtfTool automation, factordb integration, SageMath implementations for Wiener and lattice attacks, complete working Python scripts for all major RSA attack categories, and practical CTF examples from ASIS, CSAW, PlaidCTF, Google CTF, and other major competitions./pwn-memory-exploitationExploit memory leak vulnerabilities, information disclosure, ASLR bypass, PIE breakage, arbitrary read/write primitives in CTF binary challenges. Use when defeating address space randomization, leaking stack/heap/code pointers, exploiting format string vulnerabilities, or using memory disclosure to calculate base addresses. Includes techniques for partial overwrites, pointer arithmetic, and multi-stage exploitation with leaked addresses. Covers ASLR/PIE bypass methods./pwn-stack-exploitationExploit stack-based buffer overflows, return address hijacking, ROP chain exploitation, ret2libc attacks, and stack canary bypasses in CTF binary challenges. Use when analyzing stack vulnerabilities, crafting buffer overflow exploits, building ROP chains with gadgets, bypassing stack protections (ASLR, PIE, canaries), or exploiting return address overwrite vulnerabilities. Includes pwntools templates, ROP gadget finding techniques, offset calculation methods, and complete CTF writeups. Covers x86 and x64 architectures for pwn challenges./rot-cipherDecifratura e cifratura ROT-N (Cifrario di Cesare). Usa questa skill quando l'utente chiede di decifrare, cifrare, o analizzare testo con crittografia ROT, Caesar cipher, o shift cipher. La skill supporta sia decodifica con shift noto (ROT-1 fino a ROT-25) che ricerca automatica dello shift corretto tramite brute force e analisi di frequenza. Usa anche quando l'utente vuole implementazioni in linguaggi specifici (Python, JavaScript, Java, C++, C#, Go, Rust, Ruby, PHP, Bash, Kotlin, Swift).npx claudepluginhub giofornari/skills --plugin ctf-security