| name | httpx-probe |
| description | 使用 httpx 进行 HTTP 探活、指纹识别和信息收集。当需要批量检测 HTTP/HTTPS 服务存活、识别 Web 技术栈、提取页面标题/状态码/响应头、CDN 检测、截图时使用。httpx 是 ProjectDiscovery 出品的多功能 HTTP 探针工具,是渗透测试管道中连接端口扫描和漏洞扫描的关键桥梁。任何涉及 HTTP 存活检测、Web 指纹识别、技术栈识别、批量 URL 探测的场景都应使用此技能 |
| metadata | {"tags":"httpx,probe,http,fingerprint,存活检测,指纹识别,技术栈,CDN,截图,projectdiscovery,title","category":"tool"} |
httpx HTTP 探活与指纹识别方法论
httpx 是 ProjectDiscovery 出品的多功能 HTTP 探针工具。核心优势:高速并发(默认 50 线程)+ 丰富探针(状态码/标题/技术栈/CDN/截图等)+ 管道核心(连接端口扫描和漏洞扫描的桥梁)。
项目地址:https://github.com/projectdiscovery/httpx
Phase 1: 基本存活检测
httpx -u http://target.com
httpx -l urls.txt
cat urls.txt | httpx
cat urls.txt | httpx -silent
Phase 2: 信息探针(核心能力)
httpx -l urls.txt -sc -title -tech-detect
httpx -l urls.txt -sc -cl -server
httpx -l urls.txt -ip -cname -asn
httpx -l urls.txt -cdn
httpx -l urls.txt -rt
httpx -l urls.txt -sc -title -tech-detect -server -ip -cdn -cl
Phase 3: 技术栈识别(指纹识别)
httpx 内置 Wappalyzer 数据集,能识别 Web 框架、CMS、编程语言等:
httpx -u http://target.com -tech-detect
httpx -l urls.txt -tech-detect -json -o fingerprints.json
httpx -l urls.txt -tech-detect -custom-fingerprint-file /path/to/fingerprints.json
Phase 4: 过滤与匹配
httpx -l urls.txt -mc 200
httpx -l urls.txt -fc 404,403
httpx -l urls.txt -ms "admin"
httpx -l urls.txt -mr "login|admin|dashboard"
httpx -l urls.txt -fl 0
httpx -l urls.txt -match-cdn cloudflare
httpx -l urls.txt -filter-page-type error,parked
Phase 5: 截图(Headless)
httpx -l urls.txt -screenshot
httpx -l urls.txt -screenshot -system-chrome
httpx -l urls.txt -screenshot -tech-detect -sc -title
Phase 6: 管道集成
httpx 是 ProjectDiscovery 工具链的核心枢纽:
subfinder -d target.com -silent | httpx -silent
naabu -host target.com -silent | httpx -tech-detect -title -sc
subfinder -d target.com -silent | httpx -silent | nuclei -severity critical,high
subfinder -d target.com -silent | httpx -silent | katana -jc -silent | nuclei
naabu -host 10.0.0.0/24 -p 80,443,8080 -silent | httpx -tech-detect -title -sc -silent
Phase 7: 高级用法
echo target.com | httpx -ports 80,443,8080,8443
httpx -l urls.txt -x GET,POST
httpx -l urls.txt -H "Cookie: session=abc"
httpx -l urls.txt -follow-redirects
httpx -l urls.txt -tls-grab
httpx -l urls.txt -extract-preset mail,ipv4
httpx -l urls.txt -extract-regex "api[_-]?key['\"]?\s*[:=]\s*['\"]?([a-zA-Z0-9]+)"
httpx -l urls.txt -json -o results.json
httpx -l urls.txt -threads 100 -rate-limit 50
httpx -l urls.txt -filter-duplicates
常用场景速查
| 场景 | 命令 |
|---|
| 快速存活检测 | cat urls.txt | httpx -silent |
| 技术栈识别 | httpx -l urls.txt -tech-detect -sc -title |
| 找管理后台 | httpx -l urls.txt -mr "admin|login|dashboard" -sc -title |
| CDN 识别 | httpx -l urls.txt -cdn -ip |
| 批量截图 | httpx -l urls.txt -screenshot -system-chrome |
| 提取子域名 | httpx -l urls.txt -extract-fqdn -json |
| 连接 naabu | naabu -host target -silent | httpx -tech-detect |