Skip to content

httpx

Fast HTTP toolkit with multiple probes

Description

httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes. It is designed to maintain result reliability with an increased number of threads. It supports HTTP/HTTPS probing, title extraction, status codes, content length, technology detection, and more.

Installation

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

Basic Usage

BASH
# Probe for alive hosts
cat subs.txt | httpx -silent -o alive.txt

# With status codes and titles
cat subs.txt | httpx -title -status-code -content-length

# Follow redirects
cat subs.txt | httpx -follow-redirects -o results.txt

Advanced Usage

BASH
# Technology detection
cat subs.txt | httpx -tech-detect -title -status-code

# Screenshot capture
cat subs.txt | httpx -screenshot -o results/

# Filter by status code
cat subs.txt | httpx -mc 200,301,302

# Custom ports
cat subs.txt | httpx -ports 80,443,8080,8443

# JSON output
cat subs.txt | httpx -json -o results.json

# Custom headers
cat subs.txt | httpx -H "Cookie: session=abc123"

# Response hash
cat subs.txt | httpx -hash md5

# Content type filtering
cat subs.txt | httpx -ct "text/html"

Common Workflows

BASH
# Full recon pipeline
subfinder -d target.com -silent | httpx -silent | nuclei -s critical,high

# Find interesting status codes
cat subs.txt | httpx -sc -title -cl | grep -E "^(401|403|500)"

# Technology fingerprinting
cat alive.txt | httpx -tech-detect -json | jq '.technologies'