# theHarvester

> Command-line tool that gathers subdomains, hosts, IPs, emails and names for a domain from search engines and public data sources.

Source: https://osinttools.io/tools/theharvester/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain
- **Category:** Data capturing
- **Pricing:** Open source (Free and open source; some sources need third-party API keys.)
- **Footprint:** depends on the modules you run
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/laramies/theHarvester
- **Docs:** https://github.com/laramies/theHarvester/wiki
- **GitHub:** laramies/theHarvester, 18,402 stars · Python · GPL-2.0 · last commit 2026-11-21
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

theHarvester is a Python tool that takes a domain and queries a list of sources, such as certificate transparency logs, search engines, DNS datasets and threat-intel services, to collect subdomains, hosts, IP addresses, email addresses and names. You pick sources with the -b flag.

It is one of the standard first steps in external reconnaissance and is packaged in Kali Linux. Most sources are passive lookups; optional DNS brute force and screenshot features do contact the target's infrastructure. Several sources need API keys.

Footprint is depends: whether the target is contacted depends on which modules or transforms you run. No account is needed. There is no public API.

## Features

- Many selectable data sources
- Subdomain, host and email collection
- Optional DNS brute force
- Export to XML and JSON
- REST API server mode
- Docker support

## Pros

- Quick to run against a single domain
- Actively maintained
- Preinstalled on Kali and other security distributions

## Cons

- Results depend heavily on which sources and API keys you configure
- Email results are often sparse compared with commercial tools
- Requires a recent Python version and uv for source installs

## When to use it

- Use it when you need a fast list of subdomains and addresses tied to a domain.
- Use it at the start of an organisation investigation to find email formats and exposed hosts.

## Quick start

Install from source with uv:

```
git clone https://github.com/laramies/theHarvester.git
cd theHarvester
uv sync
uv run theHarvester -d example.com -b crtsh,certspotter
```

## Alternatives

- [Wayback Machine](https://osinttools.io/tools/wayback-machine/): Internet Archive's public archive of web pages, with snapshots going back to 1996 and on-demand page saving. (Free · URL, Domain · passive)
- [Photon](https://osinttools.io/tools/photon/): Python web crawler that extracts URLs, emails, social accounts, files, keys and subdomains from a target site. (Open source · URL, Domain · active · 13,393 GitHub stars)
- [SiteDorks](https://osinttools.io/tools/sitedorks/): Opens search engine queries for a term across a curated list of websites, grouped by category. (Open source · Name, Domain · passive · 1,074 GitHub stars)
- [archive.today](https://osinttools.io/tools/archive-today/): On-demand web archive (archive.ph, archive.is) that stores a text copy and screenshot of a page at the moment you submit it. (Free · URL, Domain · passive)
- [BBOT](https://osinttools.io/tools/bbot/): Recursive OSINT and recon scanner from Black Lantern Security that chains modules for subdomains, web assets, emails and more. (Open source · Domain, IP address, URL · depends · 11,191 GitHub stars)
- [Recon-ng](https://osinttools.io/tools/recon-ng/): Python reconnaissance framework with a Metasploit-style console and installable modules for domains, hosts, contacts and credentials. (Open source · Domain, IP address, Email, Username, Name · depends · 6,067 GitHub stars)

All alternatives to theHarvester in one table: https://osinttools.io/tools/theharvester/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
