Skip to main content
ASM Cheatsheet

httpx

Beginner
Actively maintained

Probe a list of hosts for live HTTP services and fingerprint what they are

https://github.com/projectdiscovery/httpx

Installation

go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest

# Alternatives
brew install httpx                       # macOS
docker run -it projectdiscovery/httpx    # container

Usage

Basic Usage

# Probe a list of hosts for live web services
cat subdomains.txt | httpx -silent

# Show status code, page title, and detected technologies
cat subdomains.txt | httpx -silent -status-code -title -tech-detect

# Keep only successful responses, write to a file
cat subdomains.txt | httpx -silent -mc 200,204,301,302 -o live.txt

# Follow redirects and record the final location
cat subdomains.txt | httpx -silent -follow-redirects -location

Pipeline Usage

# Discovery -> probing -> screenshots, all in one chain
subfinder -d example.com -silent \
  | httpx -silent -mc 200 \
  | gowitness scan file -f -

# JSON output for correlation with other tools
cat subdomains.txt | httpx -silent -json -o live.json
jq -r 'select(.tech != null) | "\(.url) \(.tech | join(","))"' live.json