Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ctf-router

БесплатноЗапускает вложенные скриптыНе проверен

Routes any CTF challenge prompt in the CTF project to the right specialist skill and tools. Use whenever the user pastes a CTF challenge, flag-hunting…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

CTF Router (project dispatcher)

This project is set up for CTF work. Your job on a CTF prompt is to route it fast, not to solve it from memory. Work in this order and keep the chat short.

Scope and safety

  • Only attack targets the user names as CTF challenges, or infrastructure they own or are authorised to test. If the target is an unknown public host that is not a CTF, stop and ask.
  • Do not run destructive actions against shared CTF infrastructure (no flooding, no brute force beyond the challenge's own hints, no persistence on shared boxes).
  • Keep every artifact under the project: challenge work goes in ctf-solver/workspaces/<challenge-name>/. Create it if missing. Do not write outside the project.

Step 0: Container contract (do this first)

All artifact work runs inside the ctf-solver container, never on the host:

scripts/ctf.sh status     # container + /health + tool probe
scripts/ctf.sh up         # create/recreate it, waits for /health
scripts/ctf.sh py scripts/stego/sweep.py <file>   # presets run on /opt/venv/bin/python
scripts/ctf.sh run nmap -sV <target>

For any image, audio, video or GIF file, run the stego preset before classifying further — it answers the standard checks without re-deriving them. Do not install tools on the host.

Ready-made media presets (in the container at /app/presets, files in /app/workspaces):

docker exec ctf-solver python3 /app/presets/frame_diff.py /app/workspaces/<chal>/<video-or-gif>   # video/GIF frame diffs
docker exec ctf-solver python3 /app/presets/lsb_extract.py /app/workspaces/<chal>/<image>           # image LSB streams
docker exec ctf-solver python3 /app/presets/qr_decode.py /app/workspaces/<chal>/<image>            # QR / barcode
docker exec ctf-solver python3 /app/presets/audio_spectrum.py /app/workspaces/<chal>/<audio>       # spectrogram + DTMF
docker exec ctf-solver python3 /app/presets/gif_frames.py /app/workspaces/<chal>/<gif> --x X --y Y --hi H --lo L

Run the matching preset, then ctf-stego (sweep) for anything they do not answer. Do not write a new extractor for a standard filter.

Step 1: Classify (one pass, no deep dive)

Look at what the user gave you:

Input Likely category First skill
.pcap, .pcapng, .E01, .dd, .raw, memory dump, disk image, .evtx forensics /ctf-forensics
.mp4, .mkv, .avi, .webm, .mov (video) forensics (media) /ctf-forensics Media Triage, then stego video_* tools
.gif (animated or not) forensics (media) /ctf-forensics Media Triage, then stego gif_* tools
.wav, .mp3, .ogg, .flac, .m4a (audio) stego (hidden-in-audio) OR forensics (SSTV/Morse/DTMF/RF signal) /ctf-stego first for LSB/spectrogram; if SSTV/Morse/DTMF/RF -> /ctf-forensics or /ctf-misc (audio.md, rf-sdr.md)
.png, .jpg, .bmp, .webp with no obvious content, "hidden", "stego", LSB, bit plane, palette, QR or barcode stego /ctf-stego (runs scripts/stego/sweep.py first)
.pdf, .docx, .xlsx, .zip with no obvious content forensics (documents) /ctf-forensics PDF Analysis, then stego doc_* / file_* tools
Unknown or generic binary (file says data, odd magic bytes, "find the flag" with no clear type) forensics (carving) file *, then /ctf-forensics (binwalk, foremost, strings)
.elf, .exe, .so, ELF with a nc host port service, "buffer overflow", "ROP", "heap" pwn (or reverse first) /ctf-reverse if you do not understand it, else /ctf-pwn
eBPF verifier, kernel module, KASLR, slab, seccomp pwn /ctf-pwn (kernel.md)
Solana/Firedancer or other blockchain VM, custom bytecode interpreter with memory bugs pwn (understand-only -> reverse) /ctf-reverse to characterize, then /ctf-pwn
.py/.sage with numbers, "RSA", "AES", "cipher", "prime", "lattice" crypto /ctf-crypto
URL, HTML/JS/PHP source, "XSS", "SQLi", "JWT", "SSTI", "SSRF", admin bot, "report URL" web /ctf-web
browser extension, service worker, CSP bypass, shadow DOM, iframe sandbox, DOM-extraction puzzle web /ctf-web (client-side advanced)
.apk, .wasm, .pyc, "obfuscated", "reverse" reverse /ctf-reverse
"jail", pyjail, restricted shell, eval/exec filter, "no quotes", disable_functions jail /ctf-jail
kubeconfig, SA token, docker.sock, IAM/S3/Lambda, 169.254.169.254, "container escape" cloud /ctf-cloud
firmware blob, .sr/.sal/.vcd logic capture (Saleae/sigrok), UART/JTAG/SPI, CAN log, SDR/IQ for hardware hardware /ctf-hardware
"encoding", "esolang", "SDR" demod of an IQ file, "QR", constraint puzzle, game theory misc /ctf-misc
"find who", "where was this photo", usernames, locations OSINT /ctf-osint, then /osint-ctf-databases
.safetensors, .pt, .onnx, prompt injection, LoRA AI/ML /ctf-ai-ml
MCP server, AI agent with tools, tool-call injec
Полный SKILL.md на GitHub

Установить ctf-router в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep
Task
WebFetch
WebSearch
Skill

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yamlevals/README.mdevals/check_routing.pyevals/corpus.json

FAQ

Что делает скилл ctf-router?

Routes any CTF challenge prompt in the CTF project to the right specialist skill and tools. Use whenever the user pastes a CTF challenge, flag-hunting request, a challenge file, a remote host/port, a CTF URL or CTFd link, or asks to solve, analyse, decode or exploit something for a capture-the-flag event. It classifies the challenge, checks the project's MCP servers (ctf-kali, stego, playwright) and browser tooling, routes HTTP/API-heavy challenges through the ctf-web ops loop first, picks the category skill (ctf-web, ctf-pwn, ctf-crypto, ctf-reverse, ctf-forensics, ctf-osint, ctf-malware, ctf-ai-ml, ctf-cloud, ctf-jail, ctf-hardware, ctf-misc) and hands off to solve-challenge for the full workflow. Do not use it for general (non-CTF) security questions or for building features in other projects.

Как установить скилл ctf-router?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ctf-router запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ctf-router с