3.1 KiB
3.1 KiB
name, description
| name | description |
|---|---|
| httpx | ProjectDiscovery httpx probing syntax, exact probe flags, and automation-safe output patterns. |
httpx CLI Playbook
Official docs:
- https://docs.projectdiscovery.io/opensource/httpx/usage
- https://docs.projectdiscovery.io/opensource/httpx/running
- https://github.com/projectdiscovery/httpx
Canonical syntax:
httpx [flags]
High-signal flags:
-u, -target <url>single target-l, -list <file>target list-nf, -no-fallbackprobe both HTTP and HTTPS-nfs, -no-fallback-schemedo not auto-switch schemes-scstatus code-titlepage title-server, -web-serverserver header-td, -tech-detecttechnology detection-fr, -follow-redirectsfollow redirects-mc <codes>/-fc <codes>match or filter status codes-path <path_or_file>probe specific paths-p, -ports <ports>probe custom ports-proxy, -http-proxy <url>proxy target requests-tlsi, -tls-impersonateexperimental TLS impersonation-j, -jsonJSONL output-sr, -store-responsestore request/response artifacts-srd, -store-response-dir <dir>custom directory for stored artifacts-silentcompact output-rl <n>requests/second cap-t <n>threads-timeout <seconds>request timeout-retries <n>retry attempts-o <file>output file
Agent-safe baseline for automation:
httpx -l hosts.txt -sc -title -server -td -fr -timeout 10 -retries 1 -rl 50 -t 25 -silent -j -o httpx.jsonl
Common patterns:
- Quick live+fingerprint check:
httpx -l hosts.txt -sc -title -server -td -silent -o httpx.txt - Probe known admin paths:
httpx -l hosts.txt -path /,/login,/admin -sc -title -silent -j -o httpx_paths.jsonl - Probe both schemes explicitly:
httpx -l hosts.txt -nf -sc -title -silent - Vhost detection pass:
httpx -l hosts.txt -vhost -sc -title -silent -j -o httpx_vhost.jsonl - Proxy-instrumented probing:
httpx -l hosts.txt -sc -title -proxy http://127.0.0.1:48080 -silent -j -o httpx_proxy.jsonl - Response-storage pass for downstream content parsing:
httpx -l hosts.txt -fr -sr -srd recon/httpx_store -sc -title -server -cl -ct -location -probe -silent
Critical correctness rules:
- For machine parsing, prefer
-j -o <file>. - Keep
-rland-texplicit for reproducible throughput. - Use
-nfwhen you need dual-scheme probing from host-only input. - When using
-pathor-ports, keep scope tight to avoid accidental scan inflation. - Use
-sr -srd <dir>when later steps need raw response artifacts (JS/route extraction, grepping, replay).
Usage rules:
- Use
-silentfor pipeline-friendly output. - Use
-mc/-fcwhen downstream steps depend on specific response classes. - Prefer
-proxyflag over global proxy env vars when only httpx traffic should be proxied. - Do not use
-h/--helpfor routine runs unless absolutely necessary.
Failure recovery:
- If too many timeouts occur, reduce
-rl/-tand/or increase-timeout. - If output is noisy, add
-fcfilters or-fdduplicate filtering. - If HTTPS-only probing misses HTTP services, rerun with
-nf(and avoid-nfs).
If uncertain, query web_search with:
site:docs.projectdiscovery.io httpx <flag> usage