theHarvester -d <domain> -b <sources>Searches the chosen sources for emails, hosts and IPs related to the domain.
Example
theHarvester -d example.com -b crtsh,duckduckgo,bingGathers emails, names, subdomains, IPs and URLs about a domain from public sources like search engines and certificate logs.
sudo apt install theharvestertheHarvester -d <domain> -b <sources>Searches the chosen sources for emails, hosts and IPs related to the domain.
Example
theHarvester -d example.com -b crtsh,duckduckgo,bingtheHarvester -d <domain> -b allQueries every available source. Sources that need API keys are skipped unless keys are configured.
Example
theHarvester -d example.com -b alltheHarvester -d <domain> -b crtshSubdomains from certificate-transparency logs — fast and keyless.
Example
theHarvester -d example.com -b crtshtheHarvester -d <domain> -b <source> -l <n>Limits the number of results fetched from search engines.
Example
theHarvester -d example.com -b bing -l 500theHarvester -d <domain> -b <source> -S <start>Starts from a later result offset.
Example
theHarvester -d example.com -b bing -S 100theHarvester -d <domain> -b <source> -rResolves discovered hosts with DNS.
Example
theHarvester -d example.com -b crtsh -rtheHarvester -d <domain> -b <source> -cDNS brute-forces subdomains.
Example
theHarvester -d example.com -b crtsh -ctheHarvester -d <domain> -b <source> -nReverse DNS lookups on discovered IP ranges.
Example
theHarvester -d example.com -b crtsh -ntheHarvester -d <domain> -b <source> -tChecks discovered hosts for subdomain-takeover candidates.
Example
theHarvester -d example.com -b crtsh -ttheHarvester -d <domain> -b shodanEnriches hosts with Shodan data (needs an API key).
Example
theHarvester -d example.com -b shodantheHarvester -d <domain> -b <source> -f <file>Saves results as XML and JSON.
Example
theHarvester -d example.com -b all -f example_reporttheHarvester -d <domain> -b <source> -qQuiet mode with fewer warnings.
Example
theHarvester -d example.com -b crtsh -qcat ~/.theHarvester/api-keys.yamlAPI key configuration file (in /etc/theHarvester/ on some installs). Adding keys unlocks sources like Hunter, Shodan and SecurityTrails.
In-depth attack-surface mapping: discovers subdomains through passive sources, DNS brute-forcing and permutation, and graphs the results.
A modular web-reconnaissance framework with a Metasploit-style console, a workspace database and marketplace modules.
Automates OSINT collection across 200+ modules and correlates results about IPs, domains, emails, names and more, via CLI or web UI.