-
Notifications
You must be signed in to change notification settings - Fork 991
Open
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.
Description
Summary
Request to add two key features to httpx:
- Authentication file support (
-sf, --secret-file) similar to nuclei - Burp Suite import functionality (
-im burp, --input-mode burp) for processing Burp XML exports
Motivation
Current Limitations
- httpx currently lacks built-in authentication management for complex scanning scenarios
- No native support for importing request data from Burp Suite, a widely used security testing tool
- Users must manually handle authentication headers and cookies for each request
- Difficult to integrate httpx into existing security testing workflows that rely on Burp Suite
Use Cases
- Authenticated Web Application Scanning: Need to scan applications with session-based authentication, API keys, or custom headers
- Security Testing Workflow Integration: Import requests captured in Burp Suite for further analysis with httpx
- Automated Security Pipelines: Manage authentication credentials centrally across different targets
- Penetration Testing: Seamlessly transition from manual testing in Burp to automated scanning with httpx
Proposed Features
1. Authentication File Support (-sf, --secret-file)
Command Line Interface
# Basic usage
httpx -sf secrets.yaml -l targets.txt
# With other httpx features
httpx -sf secrets.yaml -l targets.txt -tech-detect -title -status-code -ms 200Configuration Format (YAML)
secrets:
- id: "web-app-auth"
domains:
- "example.com"
- "*.example.com"
headers:
Cookie: "session=abc123; csrf_token=xyz789"
Authorization: "Bearer token123"
- id: "api-auth"
domains:
- "api.service.com"
headers:
X-API-Key: "api_key_here"
Authorization: "Basic dXNlcjpwYXNz"
- id: "custom-auth"
domains:
- "internal.company.com"
credentials:
username: "admin"
password: "password123"
headers:
X-Custom-Header: "custom_value"Features
- Domain-based matching: Apply different credentials to different domains/subdomains
- Wildcard support: Use
*.domain.comfor subdomain matching - Multiple authentication methods: Support for cookies, headers, basic auth, bearer tokens
- Environment variable support: Reference environment variables in configuration
- Credential inheritance: Hierarchical credential application
2. Burp Suite Import Support (-im burp, --input-mode burp)
Command Line Interface
# Import from Burp XML export
httpx -im burp -l burp_export.xml
# Combine with authentication
httpx -im burp -l burp_export.xml -sf secrets.yaml
# Extract specific information
httpx -im burp -l burp_export.xml -title -tech-detect -status-codeSupported Features
- Full request parsing: Extract method, URL, headers, and body from Burp XML
- Request filtering: Filter by method, status code, or URL patterns
- Header preservation: Maintain original request headers while allowing authentication override
- Body handling: Properly handle POST data and form parameters
- URL reconstruction: Rebuild complete URLs from Burp's host/path format
Metadata
Metadata
Assignees
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.