Ultimate HTTPx Cheat Sheet




 Ultimate HTTPx Cheat Sheet

A reference guide for the fast and multi-purpose HTTP toolkit. Probe, scan, and fingerprint everything.

1. Basic Syntax

The fundamental structure of an HTTPx command.

httpx [flags]

Input Methods

  • -u [URL] : Single URL
  • -l [FILE] : List of URLs
  • -p [PROBE] : Pipe from stdin
  • echo "example.com" | httpx

Basic Scan

  • httpx -u https://example.com : Scan single URL
  • httpx -l urls.txt : Scan from file
  • cat domains.txt | httpx : Pipe input
  • httpx -u example.com -silent : Quiet mode

2. Probing & Discovery

Basic Probing

Check if hosts are alive and serving HTTP/HTTPS.

httpx -l domains.txt -silent

Probe with Status Codes

Show HTTP status codes with each result.

httpx -l domains.txt -status-code

Probe with Title

Extract and display page titles.

httpx -l domains.txt -title

Probe with Tech Detection

Identify technologies used by websites.

httpx -l domains.txt -tech-detect

Full Probe

Combine multiple information gathering options.

httpx -l domains.txt -sc -title -tech-detect -server -cdn -ip
Pro Tip: Comprehensive Recon
Use multiple flags together for maximum information: -sc -title -tech-detect -server -cdn -ip -cname -location gives you a complete picture of each target.

3. Filtering & Matching

Filter results based on various criteria to focus on interesting targets.

Filter by Status Code

Show only 200 OK responses.

httpx -l domains.txt -mc 200

Filter Multiple Status Codes

Show 200, 301, and 403 responses.

httpx -l domains.txt -mc 200,301,403

Exclude Status Codes

Hide 404 and 500 responses.

httpx -l domains.txt -fc 404,500

Filter by Content Length

Show only responses larger than 1000 bytes.

httpx -l domains.txt -ml 1000
Filter FlagDescription
-mc [CODES]Match status codes
-fc [CODES]Filter out status codes
-ml [LENGTH]Match content length
-fl [LENGTH]Filter content length
-mr [REGEX]Match response with regex
-fr [REGEX]Filter response with regex

4. Data Extraction

Extract Page Titles

httpx -l domains.txt -title

Extract Server Headers

Identify web server software and versions.

httpx -l domains.txt -server

Extract Technologies

Detect CMS, frameworks, and libraries.

httpx -l domains.txt -tech-detect

Extract IP Addresses

Resolve and display IP addresses.

httpx -l domains.txt -ip

Extract Response Headers

Show all response headers.

httpx -l domains.txt -response-headers
Pro Tip: Combine for JSON Output
Use -json flag to get all extracted data in structured JSON format for easy parsing with jq.

5. Advanced Scanning

Follow Redirects

Automatically follow HTTP redirects.

httpx -l domains.txt -follow-redirects

Custom Threads

Increase threads for faster scanning.

httpx -l domains.txt -threads 100

Custom Timeout

Set timeout for slow servers.

httpx -l domains.txt -timeout 10

Retry Failed Requests

Retry failed requests up to 3 times.

httpx -l domains.txt -retries 3

HTTP/2 Support

Enable HTTP/2 protocol support.

httpx -l domains.txt -http2

Path Discovery

Probe common paths on discovered hosts.

httpx -l domains.txt -path /admin -path /login

6. Output & Automation

Save to File

Save results to output file.

httpx -l domains.txt -o results.txt

JSON Output

Export results in JSON format.

httpx -l domains.txt -json -o results.json

CSV Output

Export results in CSV format.

httpx -l domains.txt -csv -o results.csv

Pipeline with Other Tools

Feed results to other tools like nuclei.

httpx -l domains.txt -silent | nuclei -t templates/

Full Automation Pipeline

Complete recon workflow.

subfinder -d example.com -silent | httpx -sc -title -tech-detect -ip -o live-hosts.txt
Output FlagDescription
-o [FILE]Save output to file
-jsonJSON output format
-csvCSV output format
-silentSuppress banner and errors
-no-colorDisable colored output
-verboseVerbose output
Warning:

When piping to other tools, always use -silent flag to avoid banner text contaminating your data stream. Use -no-color for clean file output.

⇧