ctf-web
БесплатноЗапускает вложенные скриптыНе проверенUse when a challenge is a web application: a URL or host:port to attack, a login form, an admin bot, a source zip or Dockerfile for a website; when the user…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
CTF web — map the app, pick the bug class, deliver
Workspace layout, remote gate, flag logging: sibling skill ctf. All live testing
against remote targets is gated by the router's rules — mirror locally whenever the
challenge ships source (php -S 127.0.0.1:8000, python3 -m http.server 8000,
scripts/ctf python app.py, or podman for provided Dockerfiles/images; details in
references/tooling.md). Craft and verify payloads on the mirror, replay the final
exploit remotely once approved.
Triage — map the app (first 10 minutes)
- Record in
notes.md: entry URL, ports, stack guess, auth model, whether an admin bot exists, whether source was provided. - Answer the map questions:
| Question | How |
|---|---|
| Stack / language? | headers (Server, X-Powered-By), cookie names (PHPSESSID/JSESSIONID/laravel_session/connect.sid), 404 page — references/recon.md |
| Routes? | robots/sitemap, JS bundles, wayback, ffuf — references/recon.md |
| Hidden params? | scripts/ctf arjun -u URL -m GET |
| Session mechanism? | cookie flags, JWT? → scripts/jwt-inspect.py "$TOKEN" |
| Admin bot? | client-side challenge: references/client.md (exfil section first) |
| Source available? | switch to Playbook → source-audit flow |
- Low-hanging fruit sweep (minutes, wins events):
| Check | Payoff |
|---|---|
/.git/HEAD, .env, backup.zip, .bak/~/.swp files |
full source / secrets |
/robots.txt, /sitemap.xml, wayback CDX |
hidden endpoints |
/swagger, /openapi.json, /graphql introspection |
complete API surface |
/server-status, /actuator/env, /phpmyadmin, /adminer.php |
config or DB leak |
default creds (admin:admin ...) |
instant login — references/auth.md |
| JWT in any header/cookie | none / weak secret / confusion — references/auth.md |
package.json, .js.map source maps |
hidden routes, versions |
One command runs probes + fuzzing: skills/ctf-web/scripts/dirquick.sh -e .php,.bak -v http://target:port
(remote gate applies; run it against local mirrors freely).
- If the flag format appears in any response, log it per the router, keep going for the intended path anyway (organizers often plant decoys).
Playbook
Flow A — source-audit (source zip / Dockerfile given)
- Identify language + framework from deps (
package.json,composer.json,requirements.txt,pom.xml,go.mod). Find the router/controllers: every endpoint with its params, and every middleware (auth, body parsing). - Grep the sinks, then trace each hit back to user input:
| Language | Grep sink list |
|---|---|
| PHP | unserialize\(, include, require, eval\(, assert\(, system\(, shell_exec\(, passthru\(, exec\(, popen\(, proc_open, preg_replace with /e, backticks, move_uploaded_file\(, simplexml_load_string\(, DOMDocument->load, curl_exec\(, md5\(+==, extract\(, header('Location |
| Python | pickle, yaml.load, eval\(, exec\(, os.system, subprocess, render_template_string, requests.get( with user URL, f-string/format SQL, jinja2.Environment |
| Node | child_process, exec, execSync, spawn, eval\(, new Function, serialize, deep merge/extend/_.set (proto pollution), res.redirect(, jwt.verify, Object.assign |
| Java | readObject, ObjectInputStream, Runtime.getRuntime, ProcessBuilder, SpelExpressionParser, Velocity, Statement/executeQuery with concat, <%=, JSP EL ${}, XMLDecoder |
| Any | SQL built by concatenation/${}; == vs ===; jwt.decode (not verify); Crypto with aes-128-ecb; random for tokens |
- Match sink to bug class table (below), build the payload against a local mirror, then fire at the remote target (gated).
- No obvious sink? Audit business logic: register/login flows, IDOR on every object reference, race-prone endpoints (balance/coupon/vote), mass assignment.
Flow B — blackbox (no source)
- Recon sweep (
references/recon.md): fingerprint, exposed files, dirs, vhosts, param mining, wayback. - Injection probes on every input point, one class at a time — error/boolean/time
triage in
references/injection.md. - Auth surface: default creds, JWT/session weaknesses, OAuth flow, IDOR/mass
assignment —
references/auth.md. - File/URL surfaces: uploads,
?file=params, importers (SSRF) —references/deser-files.md. - Admin bot / browser-only behavior:
references/client.md. - Escalate breadth (deeper wordlists, more params) and depth (chain two bugs: LFI+log poison, open redirect+OAuth, XSS+CSRF) before concluding.
Bug class index
| Bug class | Preconditions | Reference |
|---|---|---|
| SQLi (manual + sqlmap), NoSQL, command injection, SSTI, XSLT, LDAP | any user input reaching a query/parser/shell/template | references/injection.md |
| JWT/session/OAuth/IDOR/mass assignment/race/CSRF/default creds | any auth or object reference | references/auth.md |
| Deserialization (PHP/Pyt |
Установить ctf-web в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ctf-web?
Use when a challenge is a web application: a URL or host:port to attack, a login form, an admin bot, a source zip or Dockerfile for a website; when the user mentions SQLi, XSS, SSTI, LFI/RFI, XXE, SSRF, deserialization, JWT or session tokens, IDOR, CSRF, GraphQL, file upload, cookie stealing, CORS or CSP, request smuggling; or when a flag should be extracted from a website, and for white-box source review of challenge web apps.
Как установить скилл ctf-web?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ctf-web запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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