ctf-workflow
БесплатноБез исполняемых скриптовНе проверенAutonomous CTF / boot-to-root campaign driver. Runs a box end to end with no operator approvals - the deterministic driver (scripts/campaign.py) owns pass…
от lza6★ 19 звёзд на GitHubОб этом скилле
ctf-workflow
The driver is the plan. Run one command, do exactly what it prints, record the result, repeat. The
gates are enforced by scripts/campaign.py.
The loop
python3 scripts/campaign.py next
python3 scripts/campaign.py note <row> --arsenal <slug>
python3 scripts/campaign.py done <row> --poc <img> --kind req # | --dead R | --park Q | --find F
Every next now prints an APPROACH:/AVOID:/REFS: block for the served row (the distilled
ctf-box method for that vuln class) - read it before acting.
Start / resume
python3 scripts/campaign.py init --type ctf- validatesscope.md(for a box, scope is just the target IP/host) + envelope.- OSINT is OFF by default for CTF (pass 0 is skipped). Only run it if this skill was invoked
with an explicit
osintargument - a box's answer is on the box, not in Wayback. - Passes 1-3 feed
state.md- rustscan/nmap + web enum. Read every service banner, page source and config end to end. python3 scripts/campaign.py board- writes the 4a foothold rows; once an asset is a foothold, re-runboardand it seeds the 4b privesc rows (pspy/linpeas auto + the manual checklist) for that asset.- Enter the loop, depth-first.
- When a foothold lands (a reverse shell in a tmux window via
vm-scan.sh --win shell, or a meterpreter/msfconsole session via--win msf), record it:python3 scripts/campaign.py foothold <target> --win shell(or--win msf; or ride it on the closing find withdone ... --win). The driver flips the asset'sstate.mdrow toaccess=footholdand routes its 4b privesc rows throughvm-rsh --win <win>(persistent session + operator visibility past foothold), and printstmux attach -t <eng>for manual takeover. msf itself is operator-attach / drop-to-shell, notvm-rsh-driven (its wrapper frames a bash shell, not themsf6 >REPL). After recording a foothold, re-runpython3 scripts/campaign.py boardso the 4b privesc rows are seeded -nextwill not surface them until you do. - Web RCE -> a real shell, THEN stabilize -- do not ride one-liners (recurring drift). The
moment code-exec lands (a web-RCE primitive, an LFI->session-poison, a deser gadget), STOP
hand-poking one-shot payloads: (a) catch it with a real handler by default -
msfconsole'sexploit/multi/handler(meterpreter first; a plainshell_reverse_tcpis the backup when meterpreter is blocked, e.g. Windows/EDR) (record viacampaign.py foothold <target> --win msf, step 6). Reserve a rawnc -lvnplistener for when msf is unavailable: a raw nc pane'sCtrl-Ckills the LISTENER (dropping the shell back to your own prompt, the false-root attacker-prompt trap) and it has no session management, while meterpreter also carriespost/multi/recon/local_exploit_suggesterescalation modules and built-in file transfer. (b) Before picking the LPORT, test target egress on common ports (80/443/53) - high ports like 4444 are frequently filtered, so pick an egress-allowed LPORT. (scripts/vm-handler.sh <eng> <lhost>picks a free egress port and launches the handler for you, printing the LPORT.) (c) If you did fall back to raw nc, stabilize it immediately withbash scripts/vm-stabilize.sh --win shell <eng>(pty + job control + window size). (d) Then record the foothold (step 6) and drive withvm-rsh. An unstabilized nc shell (no job control, mid-line wrapping) is what makes post-ex drift back into one-liners. Full discipline:Skill(ctf-box)Phase 3 (Deliver). Therecon-capturehook fires this reflex once on the first service-accountid.
Box recipes
ctf-workflow owns pass sequencing and the board; the per-service exploitation recipes live in
Skill(ctf-box), which the driver hands off to - do not duplicate them here. Route a fingerprinted
service to its Skill(hunt-*) as the board names it; use Skill(ctf-category) for a standalone
challenge (pwn/rev/crypto/forensics/stego).
Browser observation
A box is VPN-boxed, so the local chrome-devtools MCP browser cannot reach it - use the VM-side
browser (scripts/browser.sh <url> / capture.sh web) to render a JS-heavy web service and read
its DOM + network requests (the rendered XHR/fetch calls reveal API routes a curl crawl misses -
often the intended path). Rendered screenshots of the flag/exploited state are valid web PoCs.
A service needing a manual login / MFA / CAPTCHA the agent can't do headlessly -> Skill(chrome-devtools-browser): a VISIBLE chromium on the VM desktop (scripts/browser-visible.sh) the operator drives, observed live via the chrome-devtools MCP.
Gates
G1 arsenal-first, G2 skill-first, G3 typed evidence (a flag on screen is a valid web PoC), G8
tool-first. Privesc always includes pspy + linpeas/winpeas - the board seeds these as 4b rows once
an asset is recorded as a foothold (re-run board after foothold/done --win to se
Установить ctf-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ctf-workflow?
Autonomous CTF / boot-to-root campaign driver. Runs a box end to end with no operator approvals - the deterministic driver (scripts/campaign.py) owns pass state, generates the killchain board from recon, and prints the exact next action (Skill + tool) every turn. Use when handed a box/IP to own end to end, "run the ctf workflow", "root this box", "foothold to root". Single agent, wiki-first, tool-first. OSINT is OFF unless you invoke with an osint argument. Delegates box recipes to ctf-box.
Как установить скилл ctf-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ctf-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic