Skip to content

httpx

httpx is a fast HTTP probe for discovering live hosts and collecting metadata.

Installation

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

Basic Usage

# Probe a list of hosts
httpx -l hosts.txt

# Include title and status code
httpx -l hosts.txt -title -status-code

# Detect technologies
httpx -l hosts.txt -tech-detect

Scenarios

# Find live web servers from a subdomain list
httpx -l subdomains.txt -status-code -title -follow-redirects

# Filter for 200/300 status codes only
httpx -l hosts.txt -mc 200,204,301,302 -title

# Identify HTTPS hosts and save to file
httpx -l hosts.txt -https -silent -o https-hosts.txt

# Add screenshot and response time for triage
httpx -l hosts.txt -screenshot -response-time -title

Output

# JSON output
httpx -l hosts.txt -json -o httpx.json