theHarvester
Tool for gathering e-mail accounts and subdomain names from public sources. Collects subdomains, emails, virtual hosts, open ports/banners, and employee names using search engines and PGP key servers.
Description
theHarvester is an OSINT tool used to gather intelligence on a company or domain from public sources. It performs reconnaissance by querying search engines, Shodan, and other data sources to discover emails, subdomains, hosts, and related information. The tool supports limiting results and pagination for large-scale searches.
Primary use cases include initial reconnaissance phases of penetration testing, where understanding a target's digital footprint is crucial. It helps identify potential entry points like exposed subdomains or employee emails for further attacks. Note that 'theharvester' is deprecated in favor of 'theHarvester'.
The package also includes restfulHarvest, a companion API server for theHarvester data.
How It Works
theHarvester queries public sources like DuckDuckGo, Shodan, and PGP servers using asynchronous HTTP requests and DNS resolution. It parses search results for emails, hosts, and subdomains, with optional Shodan integration for host details, screenshots of resolved domains, and proxy support via proxies.yaml. Results are limited and can be paginated.
Installation
sudo apt install theharvesterFlags
Examples
theHarvester -d kali.org -l 500 -b duckduckgotheHarvester -htheharvester -hrestfulHarvest -hrestfulHarvest -H 127.0.0.1 -p 5000theHarvester -d example.com -l 100 -stheHarvester -d example.com --screenshot screenshots/