theHarvester
Passive OSINT recon: emails, subdomains, hosts from a domain
Open source. Platform: Web.
What it is
A Python OSINT reconnaissance tool that gathers emails, names, subdomains, IPs, and URLs for a target domain from dozens of public sources (certificate transparency, search engines, DNS aggregators, breach/paste indexes).
Why it matters
It's a fast first pass at an organization's public footprint, useful for scoping an authorized external assessment or checking what's already exposed about your own domain before an attacker does.
In practice
Pointing theHarvester at a domain with crt.sh and a couple of passive sources surfaces forgotten subdomains and staff email addresses in one pass.
Install
curl -LsSf https://releases.astral.sh/installers/uv/latest/uv-installer.sh | sh && git clone https://github.com/laramies/theHarvester && cd theHarvester && uv sync
Commands
- Gather emails, subdomains, and hosts for a domain from a single passive source (crt.sh, no API key needed)
theHarvester -d example.com -b crtsh
- Query multiple sources at once and limit results per source
theHarvester -d example.com -b crtsh,otx,urlscan -l 200
- Save results to XML and JSON files instead of stdout only
theHarvester -d example.com -b crtsh -f results
Similar tools
- AbuseIPDB: IP address reputation lookups
- Shodan: Search internet-exposed hosts & services
- GreyNoise: Tell targeted activity from internet scan noise
- crt.sh: Certificate transparency log search
- MXToolbox: DNS, email & blocklist diagnostics
- Sherlock: Find registered usernames across 400+ social platforms