
新发布Jul 22, 2026
httpx v1.10.0
快速、多探针HTTP工具包,用于侦察和信息收集。探测TLS、CSP、标头、技术栈和CDN。支持匹配器、过滤器和JSON输出,用于自动化安全测试。
功能特性 • 安装 • 使用方法 • 文档 • 说明 • 加入 Discord
httpx 是一个快速、多用途的 HTTP 工具包,它使用 retryablehttp 库来运行多种探测。它旨在通过增加线程数来保持结果的可靠性。
功能特性
- 代码库简单且模块化,便于贡献。
- 快速且完全可配置的标志,用于探测多个元素。
- 支持多种基于 HTTP 的探测。
- 默认情况下智能地自动从 https 回退到 http。
- 支持主机、URL 和 CIDR 作为输入。
- 处理边缘情况,执行重试、退避等操作以应对 WAF。
支持的探测
| 探测项 | 默认检查 | 探测项 | 默认检查 |
|---|---|---|---|
| URL | true | IP | true |
| 标题 | true | CNAME | true |
| 状态码 | true | 原始 HTTP | false |
| 内容长度 | true | HTTP2 | false |
| TLS 证书 | true | HTTP 流水线 | false |
| CSP 头 | true | 虚拟主机 | false |
| 行数 | true | 单词数 | true |
| Location 头 | true | CDN | false |
| Web 服务器 | true | 路径 | false |
| Web Socket | true | 端口 | false |
| 响应时间 | true | 请求方法 | true |
| Favicon 哈希 | false | 探测状态 | false |
| 正文哈希 | true | 头部哈希 | true |
| 重定向链 | false | URL 方案 | true |
| JARM 哈希 | false | ASN | false |
安装说明
httpx 需要 go >=1.26.10 才能成功安装。运行以下命令获取仓库:
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
要了解有关安装 httpx 的更多信息,请参阅 https://docs.projectdiscovery.io/tools/httpx/install。
| ❗ 免责声明 |
|---|
| 本项目正在积极开发中。发布版本可能会出现破坏性变更。更新前请查看变更日志。 |
| 本项目主要作为独立 CLI 工具构建。将其作为服务运行可能会带来安全风险。 建议谨慎使用并采取额外的安全措施。 |
用法
httpx -h
这将显示该工具的帮助信息。以下是它支持的所有开关。
httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.
Usage:
./httpx [flags]
Flags:
INPUT:
-l, -list string input file containing list of hosts to process
-rr, -request string file containing raw request
-u, -target string[] input target host(s) to probe
-im, -input-mode string mode of input file (burp)
PROBES:
-sc, -status-code display response status-code
-cl, -content-length display response content-length
-ct, -content-type display response content-type
-location display response redirect location
-favicon display mmh3 hash for '/favicon.ico' file
-hash string display response body hash (supported: md5,mmh3,simhash,sha1,sha256,sha512)
-jarm display jarm fingerprint hash
-rt, -response-time display response time
-lc, -line-count display response body line count
-wc, -word-count display response body word count
-title display page title
-bp, -body-preview display first N characters of response body (default 100)
-server, -web-server display server name
-td, -tech-detect display technology in use based on wappalyzer dataset
-cff, -custom-fingerprint-file string path to a custom fingerprint file for technology detection
-kb, -knowledge-base enable knowledge base classification
-method display http request method
-ws, -websocket display server using websocket
-ip display host ip
-cname display host cname
-extract-fqdn, -efqdn get domain and subdomains from response body and header in jsonl/csv output
-asn display host asn information
-cdn display cdn/waf in use (default true)
-probe display probe status
HEADLESS:
-ss, -screenshot enable saving screenshot of the page using headless browser
-system-chrome enable using local installed chrome for screenshot
-ho, -headless-options string[] start headless chrome with additional options
-esb, -exclude-screenshot-bytes enable excluding screenshot bytes from json output
-ehb, -exclude-headless-body enable excluding headless header from json output
-no-screenshot-full-page disable saving full page screenshot
-st, -screenshot-timeout value set timeout for screenshot in seconds (default 10s)
-sid, -screenshot-idle value set idle time before taking screenshot in seconds (default 1s)
-jsc, -javascript-code string[] execute JavaScript code after navigation
MATCHERS:
-mc, -match-code string match response with specified status code (-mc 200,302)
-ml, -match-length string match response with specified content length (-ml 100,102)
-mlc, -match-line-count string match response body with specified line count (-mlc 423,532)
-mwc, -match-word-count string match response body with specified word count (-mwc 43,55)
-mfc, -match-favicon string[] match response with specified favicon hash (-mfc 1494302000)
-ms, -match-string string[] match response with specified string (-ms admin)
-mr, -match-regex string[] match response with specified regex (-mr admin)
-mcdn, -match-cdn string[] match host with specified cdn provider (cloudfront, fastly, google, etc.)
-mrt, -match-response-time string match response with specified response time in seconds (-mrt '< 1')
-mdc, -match-condition string match response with dsl expression condition
EXTRACTOR:
-er, -extract-regex string[] display response content with matched regex
-ep, -extract-preset string[] display response content matched by a pre-defined regex (url,ipv4,mail)