Pentest cdn

From xegeng/dsh-pentest-skills · View interactive version

Pentest cdn is an AI agent skill from the GitHub repository xegeng/dsh-pentest-skills. CDN 检测与真实 IP 绕过(国内版)。识别阿里云/腾讯云/百度/七牛/又拍云/网宿/360/Cloudflare 等 CDN,用子域名直连、MX、SPF、历史 DNS 等方法尝试发现真实 IP。仅在用户明确要求对该目标做授权资产测绘时使用。

How to use this skill

Skill file

CDN 检测与真实 IP / pentest-cdn

授权

执行必须带 --authorized,仅限用户确认授权的目标。

执行

python pentest.py cdn <域名> --authorized

检测逻辑

  1. 解析 IP 数量(多 IP → 大概率 CDN)
  2. 响应头/CNAME 特征匹配 CDN 厂商
  3. 真实 IP 四法:内部子域名直连(mail/vpn/api/oa 等 30 个常见名)→ MX 记录 → SPF 记录 → VirusTotal 历史 DNS
  4. 汇总候选 IP,给出 curl -k -H 'Host: <域名>' https://<IP> 验证命令

输出

<输出目录>/<域名>\cdn\result.json、candidates.txt。

联动

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.