Web App Scanner 标志

Web App Scanner

社区
ptn1411
web-app-scanner

通过 CLI 进行经授权的 Web 应用测试,包括部署前的本地源代码/配置审计、子域名枚举、被动侦察、非破坏性主动漏洞检查,以及带防护措施的 SQL 注入测试。适用于检查部署密钥、前端构建产物和源映射、管理员默认设置、静态 XSS 漏洞点,或经授权的线上 Web 资产。

Add to TypingMind

概览

发布者ptn1411
代码仓库skill
技能名称web-app-scanner
星标数
275
复刻数
133
附带文件
21
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 21 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 ptn1411 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Web App Scanner AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/ptn1411/skill/tree/main/web-app-scanner
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ptn1411/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/web-app-scanner .claude/skills/web-app-scanner
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Web App Scanner,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Web App Scanner。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Web App Scanner 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Web App Scanner

CLI web application assessment for authorized targets. Includes a read-only local pre-deploy audit for secrets, frontend builds, source maps, admin defaults, and static XSS sinks, plus subdomain mapping, passive recon, non-destructive active checks, optional nuclei/ffuf, and guarded SQL injection testing.

Language rule: All skill instructions use English. Final summary presented to the user must be in Vietnamese.

Fastest path — whole system. For "scan the entire system / all subdomains", run the orchestrator: it enumerates subdomains, keeps the web-alive ones, and runs passive recon + active vuln checks on each, then aggregates one report.

powershell
python web-app-scanner\scripts\scan_all.py example.com --active --crawl 1 --authorized --out output\scan

Read output\scan\FINDINGS_ALL.md. Steps 1–5 below are the individual stages if you want to run them one at a time.


0. Authorization & Routing

Operates under MASTER_POLICY.md §1-§2.

Scope gate — required. Test only web apps you own or are explicitly authorized to assess (written engagement, bug-bounty scope in-scope asset, CTF, or your own lab). Passive recon and passive subdomain sources (crt.sh/subfinder) are low-impact; anything that sends probes to the target — active vuln checks (web_recon.py --active), link crawling, DNS brute (subdomain_enum.py --brute), and SQLi testing (sqli_test.py) — is intrusive and requires the explicit --authorized flag. If scope is unclear, ask one concise question first. Never point these at third-party sites without authorization.

Sibling skillWhen
network-scannerFind which hosts/ports serve the web app
network-interceptorCapture the app's API/auth traffic
pentest-script-generatorTurn a confirmed finding into a PoC/verify script
container-cloud-auditorAudit the hosting config behind the app

Step 0 — Environment check

powershell
python web-app-scanner\scripts\scan_all.py --check
python web-app-scanner\scripts\deploy_audit.py --check
python web-app-scanner\scripts\brain_python_library.py --check
python web-app-scanner\scripts\subdomain_enum.py --check
python web-app-scanner\scripts\web_recon.py --check
python web-app-scanner\scripts\sqli_test.py --check

Native recon + subdomain enum + active checks need only Python. Optional tools:


Pre-deploy source audit (local, read-only)

Run this against the application source tree before deploying:

powershell
python web-app-scanner\scripts\deploy_audit.py C:\path\to\project --out output\deploy-audit --fail-on high

The audit writes FINDINGS.md and findings.json and checks:

  • Deploy .env* values for empty/default/example secrets, values shorter than 32 characters, repeating or sequential patterns, low estimated randomness, and weak or empty credentials embedded in common database/service URLs. Reports include only the key name, component, length, and reason; secret values are never emitted.
  • Frontend projects for a missing or empty production build (dist, build, .next, or out), emitted .map files, sourceMappingURL references, and production-effective Vite/Webpack/Next/Vue/Angular/CRA settings that enable source maps, including hidden/inline and Angular object forms. Development-only settings are ignored.
  • Admin credentials in env and seed/config files for common defaults, password=username, short passwords, and weak character variety. Hashes and runtime secret references are not treated as plaintext passwords.
  • Client-side XSS risk sinks such as dangerouslySetInnerHTML, innerHTML=, v-html, document.write, Angular sanitizer bypasses, dynamic eval, and unescaped template output.

--fail-on high returns exit code 1 after writing reports when a high or critical finding exists, which is suitable for a deployment gate. Omit it for report-only mode.

Static XSS findings are marked review-required: trace whether untrusted data reaches the sink. Confirm runtime reflected XSS separately with the authorized active checks below.


Reusable Python library

Before writing a one-off Python helper, search the in-project archive:

powershell
python web-app-scanner\scripts\brain_python_library.py search "source map"
python web-app-scanner\scripts\brain_python_library.py search xss --json
python web-app-scanner\scripts\brain_python_library.py search admin --status all
python web-app-scanner\scripts\brain_python_library.py verify

The bundled catalog is python-library\index.json; copied source is under python-library\files\. Search results include a generated purpose description, categories, imports, public symbols, safety signals, and one of these reuse levels:

  • direct — has a CLI/main guard and no detected target-specific settings.
  • adapt — useful code that needs paths, arguments, or integration adjusted.
  • reference-only — contains active networking or destructive capabilities; inspect and extract logic rather than running it unchanged.
  • do-not-run — metadata only; the source was not copied because static analysis found a hardcoded sensitive value, invalid syntax, or a module-scope call outside the conservative pure-data allowlist.

Never execute a result solely because it appears in the catalog. Read the file, confirm authorization for any target interaction, and prefer extracting a function over launching a historical scratch script. To refresh the bundled archive from the local Antigravity brain:

powershell
python web-app-scanner\scripts\brain_python_library.py sync

The sync parser never imports source files. Run verify after a refresh to validate the schema, file set, and every copied SHA-256. See references/brain_python_library.md for schema and safety rules.


Step 1 — Subdomain enumeration (map the estate)

Discover subdomains and which of them serve a live web app:

powershell
python web-app-scanner\scripts\subdomain_enum.py example.com --out output\subs
  • Passive by default: crt.sh Certificate Transparency + subfinder (if installed). Low-impact, but note crt.sh receives the target domain name.
  • Add --takeover to flag dangling-CNAME subdomain takeover — CNAME points to a decommissioned service (GitHub Pages, S3, Heroku, Azure, Fastly, Shopify, CloudFront, Vercel, Netlify, Tumblr, WordPress, Tilda, Help Scout, …) with an unclaimed-resource fingerprint; also reports stale DNS verification tokens (_github-pages-challenge, asuid, _dnsauth, …).
  • Add DNS brute force (active — sends DNS queries to the target zone, needs --authorized):
powershell
python web-app-scanner\scripts\subdomain_enum.py example.com --brute wordlist.txt --authorized --out output\subs

Writes SUBDOMAINS.md + subdomains.json (host, IP, live URL, status). Feed the web-alive URLs into Step 2/3.


Step 2 — Passive recon (no install)

powershell
python web-app-scanner\scripts\web_recon.py https://app.local --out output\web

Checks and reports:

  • Missing security headers: CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy.
  • Cookie flags: Secure / HttpOnly / SameSite.
  • TLS protocol version + certificate summary (flags TLS < 1.2).
  • CORS reflection (echoed Origin, * + credentials).
  • Tech disclosure via Server / X-Powered-By.

Step 3 — Active vulnerability checks (non-destructive, authorized only)

Detection-only probes for real app-layer bugs — exposed .git/.env/backups & security.txt, reflected XSS, open redirect, path traversal (LFI), header injection (CRLF), SSTI ({{a*b}} evaluated server-side), SSRF (url-param fetching 169.254.169.254 cloud metadata), directory listing. Advanced CORS bypass tests (null origin, arbitrary-subdomain / prefix / suffix trust) run in Step 2's passive recon. Add --crawl to walk same-host links and test every discovered endpoint:

powershell
python web-app-scanner\scripts\web_recon.py https://app.local --active --crawl 1 --authorized --out output\web
  • Requires --authorized (sends probes to the target). Every check is detection-only: benign markers, no data dumped, no state changed.
  • SSRF probes AWS IMDSv1 plus decimal/hex/IPv6-mapped encodings (defeat naive IP filters), Azure/GCP metadata, and file://. For blind SSRF, add --ssrf-callback https://<your-oast>/ to fire an out-of-band probe you then verify on your collaborator.
  • --crawl DEPTH discovers URLs (params-first); --max-pages caps the crawl.
  • Run one URL directly with vuln_checks.py "<url>" --authorized for a quick single-endpoint check.

Optional external tools — template scan + content discovery when installed:

powershell
python web-app-scanner\scripts\web_recon.py https://app.local --nuclei --ffuf wordlist.txt --out output\web

Tool output is saved under output\web\ and referenced from FINDINGS.md.


Step 4 — SQL injection testing (guarded, authorized only)

Detection with safe defaults (--level 1 --risk 1 --batch):

powershell
python web-app-scanner\scripts\sqli_test.py "https://app.local/item?id=1" --authorized --out output\sqli

From a saved Burp request:

powershell
python web-app-scanner\scripts\sqli_test.py --request req.txt --authorized --out output\sqli

Guardrails:

  • Refuses to run without --authorized.
  • Blocks data-dump / OS-takeover switches (--dump*, --os-shell, --file-read, --sql-shell, ...) unless --allow-exploit is set — for documented, authorized engagements only. This skill's purpose is confirming and fixing SQLi, not exfiltrating data.

Raise depth when needed: --level 3 --risk 2.


Step 5 — Report & remediate

scan_all.py writes output\scan\FINDINGS_ALL.md + findings_all.json — a severity-ranked, per-host roll-up across the whole estate (plus per-host FINDINGS.md under output\scan\hosts\). A single-host web_recon.py run writes FINDINGS.md + findings.json. For SQLi, review sqlmap's session output for injectable parameters, DBMS, and technique.

The local pre-deploy audit writes output\deploy-audit\FINDINGS.md + findings.json. Treat static source findings as review leads and build-artifact findings as deploy blockers according to the selected --fail-on threshold.

Add to the defensive fixes below:

  • Exposed .git/.env/backups → remove from web root; rotate any leaked secrets; block dotfiles at the web server.
  • Reflected XSS → contextual output encoding + CSP.
  • Open redirect → allow-list redirect targets; never reflect a raw URL param into Location.
  • Path traversal / LFI → canonicalize and allow-list file paths; never pass user input to file APIs.
  • Header injection / CRLF → strip/reject CR & LF in any user input reflected into headers; use the framework's header API.
  • SSTI → never render user input as a template; use logic-less templates / strict sandboxing and pass data as context, not source.
  • SSRF → allow-list outbound hosts, block link-local/metadata ranges (169.254.0.0/16, RFC1918), enforce IMDSv2, resolve-then-validate.
  • Subdomain takeover → remove dangling DNS records for decommissioned services; claim or delete the CNAME target.
  • CORS → reflect only an explicit allow-list of origins; never combine reflected/null origin with Access-Control-Allow-Credentials: true.

Defensive fixes to recommend:

  • SQLi → parameterized queries / prepared statements, ORM binding, least-privilege DB accounts, input allow-listing.
  • Headers/cookies → add the missing headers; set Secure/HttpOnly/SameSite.
  • TLS → enforce ≥ 1.2, valid cert, HSTS.
  • CORS → explicit trusted origins; never */reflected origin with credentials.

See references/web_checklist.md for the full checklist.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Web App Scanner AI 技能有什么作用?

通过 CLI 进行经授权的 Web 应用测试,包括部署前的本地源代码/配置审计、子域名枚举、被动侦察、非破坏性主动漏洞检查,以及带防护措施的 SQL 注入测试。适用于检查部署密钥、前端构建产物和源映射、管理员默认设置、静态 XSS 漏洞点,或经授权的线上 Web 资产。

为什么在 TypingMind 中使用 Web App Scanner?

因为您只需安装一次,就能搭配任何模型使用。Web App Scanner 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Web App Scanner?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/ptn1411/skill/tree/main/web-app-scanner。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Web App Scanner?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Web App Scanner 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Web App Scanner 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Web App Scanner AI 技能免费吗?

ptn1411 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇