CLI Reference
Complete command-line interface reference for SubdomainX.
Basic Usage
Single domain:
subdomainx <domain> [OPTIONS]Multiple domains:
subdomainx --wildcard <domains_file> [OPTIONS]Required: You must provide either a single domain as a positional argument or a file containing target domains using the
--wildcardflag.
Important: Flags must be placed before the domain argument. For example:
subdomainx --subfinder --httpx example.com # Correct subdomainx example.com --subfinder --httpx # Incorrect
Command Options
Required Options
| Option | Description |
|---|---|
<domain> | Target domain for single domain scan |
--wildcard FILE | Path to file containing target domains (one per line) |
Tool Selection details
Use specific tools, otherwise all available enumeration tools will be used by default (API tools and scanners are disabled by default).
Enumeration Tools
| Option | Description |
|---|---|
--subfinder | Use subfinder tool |
--amass | Use amass tool |
--findomain | Use findomain tool |
--assetfinder | Use assetfinder tool |
--sublist3r | Use sublist3r tool |
--knockpy | Use knockpy tool |
--dnsrecon | Use dnsrecon tool |
--fierce | Use fierce tool |
--massdns | Use massdns tool |
--altdns | Use altdns tool |
--waybackurls | Use waybackurls tool |
--linkheader | Use Link Header enumeration |
API Tools details
| Option | Description |
|---|---|
--securitytrails | Use SecurityTrails API |
--virustotal | Use VirusTotal API |
--censys | Use Censys API |
--crtsh | Use crt.sh Certificate Transparency API |
--urlscan | Use URLScan.io API |
--threatcrowd | Use ThreatCrowd API |
--hackertarget | Use HackerTarget API |
Note: If no specific tools are specified, SubdomainX will use all available enumeration tools by default. API tools and scanners must be explicitly enabled.
Scanning Tools details
| Option | Description |
|---|---|
--httpx | Use httpx for HTTP scanning (discovers web services, extracts titles, status codes, and technologies) |
--smap | Use smap for port scanning (identifies open ports and services on discovered hosts) |
Filter Options
Filter results based on specific criteria:
| Option | Default | Description | Example |
|---|---|---|---|
--status-codes | All | Filter by HTTP status codes (comma-separated) | --status-codes 200,301,302 |
--ports | All | Filter by ports (comma-separated) | --ports 80,443,8080 |
Note: Filter options work with HTTP scanning (
--httpx) and port scanning (--smap) results. Default values include all common HTTP status codes (100-511) and common ports (21,22,23,25,53,80,110,111,135,139,143,443,993,995,1723,3306,3389,5900,8080,8443).
Output Options
| Option | Default | Description |
|---|---|---|
--name NAME | scan | Unique name for output files |
--format FORMAT | json | Output format: json, txt, html |
--output DIR | output | Output directory for generated files |
Performance Options
| Option | Default | Description |
|---|---|---|
--threads N | 10 | Number of concurrent threads |
--retries N | 3 | Number of retry attempts |
--timeout N | 30 | Timeout in seconds |
--rate-limit N | 100 | Rate limit per second |
--wordlist FILE | "" | Custom wordlist file for brute-forcing |
--max-http-targets N | 1000 | Maximum subdomains to scan with httpx |
--resume SCAN_ID | "" | Resume scan from checkpoint (scan ID) |
--list-checkpoints | false | List available checkpoints |
Utility Options
| Option | Description |
|---|---|
--help | Show help message |
--version | Show version information |
--check-tools | Check availability of enumeration tools |
--install-tools | Show installation instructions for missing tools |
--config FILE | Use custom configuration file |
--verbose | Enable verbose output |
Examples
Basic Scan
Single domain:
subdomainx example.comMultiple domains:
subdomainx --wildcard domains.txtSpecific Tools
Single domain:
subdomainx --amass --subfinder --waybackurls example.comMultiple domains:
subdomainx --wildcard domains.txt --amass --subfinder --waybackurlsLink Header Discovery
Single domain:
subdomainx --linkheader example.comMultiple domains:
subdomainx --wildcard domains.txt --linkheaderAPI Tools
Single domain:
subdomainx --securitytrails --virustotal --censys --crtsh --urlscan --threatcrowd --hackertarget example.comMultiple domains:
subdomainx --wildcard domains.txt --securitytrails --virustotal --censys --crtsh --urlscan --threatcrowd --hackertargetCustom Wordlist
Single domain:
subdomainx --wordlist /path/to/wordlist.txt example.comMultiple domains:
subdomainx --wildcard domains.txt --wordlist /path/to/wordlist.txtPerformance Optimization
Limit HTTP scanning for large subdomain lists:
subdomainx --subfinder --httpx --max-http-targets 500 example.comHigh-performance scan with custom limits:
subdomainx --subfinder --httpx --max-http-targets 200 --threads 20 --timeout 60 example.comProgress Monitoring
Enable verbose mode for resource monitoring:
subdomainx --verbose --subfinder --amass example.comResume Functionality
List available checkpoints:
subdomainx --list-checkpointsResume interrupted scan:
subdomainx --resume my_scanResume with additional scanning:
subdomainx --resume my_scan --httpx --smapMultiple domains:
subdomainx --wildcard domains.txt --securitytrails --virustotal --censysMixed Approach
Single domain:
subdomainx --subfinder --securitytrails --linkheader example.comMultiple domains:
subdomainx --wildcard domains.txt --amass --virustotal --censys --linkheaderWith Filters
Single domain:
subdomainx --httpx --smap --status-codes 200,301,302 --ports 80,443,8080 example.comMultiple domains:
subdomainx --wildcard domains.txt --httpx --smap --status-codes 200,301,302 --ports 80,443,8080HTML Report
Single domain:
subdomainx --format html --name my_scan example.comMultiple domains:
subdomainx --wildcard domains.txt --format html --name my_scanHigh Performance
Single domain:
subdomainx --threads 20 --timeout 60 example.comMultiple domains:
subdomainx --wildcard domains.txt --threads 20 --timeout 60Tool Management
Check Tools
Check which tools are available and get installation help:
subdomainx --check-toolsInstall Help
Get detailed installation instructions for missing tools:
subdomainx --install-tools