MysterionRise
ctf-kit
Python

๐Ÿด AI-assisted CTF challenge solver toolkit. Integrates with Claude Code, Cursor, and Copilot to help you analyze and solve CTF challenges faster.

Last updated Jul 28, 2026
10
Stars
1
Forks
0
Issues
0
Stars/day
Attention Score
23
Language breakdown
Python 93.3%
Shell 6.5%
Makefile 0.2%
โ–ธ Files click to expand
README

๐Ÿด CTF Kit

Solve CTF challenges faster with AI assistance.

A toolkit that integrates with AI coding agents to help you analyze, solve, and document CTF challenges.


โšก Quick Start

1. Install the Claude Code Plugin

Inside Claude Code, run:

/plugin install --from https://github.com/MysterionRise/ctf-kit

Or from a local checkout:

/plugin install --from /path/to/ctf-kit

This makes all /ctf-kit:* skills available in any project.

2. Install the CLI (optional)

uv tool install ctf-kit --from git+https://github.com/MysterionRise/ctf-kit.git

3. Initialize in your CTF repo

cd ~/ctf-dangerzone-2026
ctf init --repo

4. Start solving challenges

cd competitions/somectf/crypto-challenge
ctf init

Launch your AI agent

claude

Use slash commands (plugin format)

> /ctf-kit:analyze challenge.bin > /ctf-kit:crypto

๐ŸŽฏ Features

| Feature | Description | |---------|-------------| | AI-Powered Analysis | Automatic challenge categorization and vulnerability detection | | 20+ Tool Integrations | xortool, binwalk, volatility, zsteg, RsaCtfTool, and more | | Claude Code Plugin | Install once, use /ctf-kit:* skills in any project | | Competition Workflow | Designed for speed during live CTFs | | Writeup Generation | Auto-generate writeups from your solve process |


๐Ÿ”„ How It Works

CTF Kit has a two-tier architecture:

CLI Commands (ctf)

The standalone CLI for direct tool access:

ctf analyze challenge.bin    # Analyze files and detect category
ctf check --category crypto  # Check which crypto tools are installed
ctf run xortool file.enc     # Run a specific tool directly
ctf tools                    # List all available tools

Claude Code Plugin Skills (/ctf-kit:*)

AI-powered skills available in any project after installing the plugin:

| Command | What it does | |---------|--------------| | /ctf-kit:analyze | Analyzes files, detects challenge type, suggests next steps | | /ctf-kit:crypto | Guides crypto challenges (RSA, XOR, hashing, etc.) | | /ctf-kit:forensics | Memory dumps, PCAPs, disk images, file carving | | /ctf-kit:stego | Hidden data in images, audio, and other media | | /ctf-kit:web | SQLi, XSS, directory enumeration, auth bypass | | /ctf-kit:pwn | Binary exploitation, ROP chains, format strings | | /ctf-kit:reverse | Static/dynamic analysis, decompilation | | /ctf-kit:osint | Username enumeration, domain recon | | /ctf-kit:misc | Encoding chains, esoteric languages, QR codes |

The skills run the CLI tools under the hood and help you interpret results.


๐Ÿ’ก Usage Examples

Example 1: Crypto Challenge

# Start Claude Code in your challenge directory
cd competitions/somectf/rsa-challenge
claude

In Claude Code:

> /ctf-kit:analyze encrypted.txt public_key.pem

Output: Detected RSA challenge with small public exponent

> /ctf-kit:crypto

Claude guides you through attacking the weak RSA parameters

Example 2: Forensics Challenge

cd competitions/somectf/memory-dump
claude

> /ctf-kit:analyze memory.raw

Output: Detected memory dump (Windows), suggests volatility3

> /ctf-kit:forensics

Claude helps extract credentials, processes, and artifacts

Example 3: Steganography

cd competitions/somectf/hidden-message
claude

> /ctf-kit:analyze image.png

Output: PNG image, suggests checking for LSB steganography

> /ctf-kit:stego

Claude runs zsteg, exiftool, and other tools to find hidden data


๐Ÿ“š Skills Reference

Analysis

| Command | Description | |---------|-------------| | /ctf-kit:analyze | Analyze challenge files and auto-detect category |

Category-Specific

| Command | Tools Used | |---------|------------| | /ctf-kit:crypto | xortool, RsaCtfTool, hashcat, john | | /ctf-kit:forensics | volatility3, binwalk, foremost, tshark | | /ctf-kit:stego | zsteg, steghide, exiftool | | /ctf-kit:web | sqlmap, gobuster, ffuf | | /ctf-kit:pwn | checksec, ROPgadget | | /ctf-kit:reverse | radare2, ghidra (headless) | | /ctf-kit:osint | sherlock, theHarvester | | /ctf-kit:misc | Encoding detection, file analysis |


๐Ÿ”ง CLI Reference

# Initialize CTF Kit in repo (one-time)
ctf init --repo

Initialize for a challenge

ctf init [--category <category>]

Analyze challenge files

ctf analyze <path> [--verbose]

Check installed tools

ctf check [--category <category>]

List all tools and their status

ctf tools

Run a tool directly

ctf run <tool> [args...]

Create a new challenge folder

ctf new <name> [--category <category>]

Generate writeup

ctf writeup [--format md|html]

๐Ÿ“ Project Structure

CTF Kit integrates with your existing workflow:

your-ctf-repo/
โ”œโ”€โ”€ .ctf-kit/                    # Repo-level config (one-time)
โ”‚   โ””โ”€โ”€ config.yaml
โ””โ”€โ”€ competitions/
    โ””โ”€โ”€ somectf2026/
        โ””โ”€โ”€ crypto-challenge/
            โ”œโ”€โ”€ .ctf/            # CTF Kit memory (per-challenge)
            โ”‚   โ”œโ”€โ”€ analysis.md
            โ”‚   โ””โ”€โ”€ writeup.md
            โ”œโ”€โ”€ challenge.txt    # Your files (unchanged)
            โ””โ”€โ”€ solve.py         # Your solution (unchanged)

๐Ÿ› ๏ธ Tool Requirements

Essential (auto-checked)

  • Python 3.11+
  • file, strings, xxd

Check Installed Tools

# See all tools and their installation status
ctf tools

Check specific category

ctf check --category crypto ctf check --category forensics

๐Ÿ“– Documentation


๐Ÿค Contributing

Python Version

CTF Kit requires Python 3.11+. A runtime check will raise RuntimeError on older versions.

Using uv (recommended)

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

Clone and install

git clone https://github.com/MysterionRise/ctf-kit.git cd ctf-kit uv sync --dev # Reads .python-version (3.14) and installs deps uv run pytest # Run tests

Using pyenv

# Install pyenv (macOS)
brew install pyenv

Install the pinned Python version

pyenv install 3.14 # Or any 3.11+ pyenv local 3.14 # Sets .python-version

Then use uv or pip

uv sync --dev

or: pip install -e ".[dev]"

Contributions welcome! Please open an issue or pull request.


๐Ÿ“„ License

MIT License - see LICENSE for details.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท MysterionRise/ctf-kit ยท Updated daily from GitHub