otinstaller · Subdomains and DNS
Install theHarvester on Windows, macOS, or Linux in one command
theHarvester gathers email addresses, subdomains, IPs, and names for a domain from public sources. Search engines, certificate logs, and threat-intelligence services each report separately, and -f writes the combined results to JSON and XML.
theHarvester in three lines
curl -fsSL https://otinstaller.com/install.sh | sh
ot install theharvester
ot run theharvester -d example.com -b crtsh,duckduckgoOn Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.
Runs laramies/theHarvester (GPL-2.0, ★ 19k, otinstaller 0.3.0). otinstaller installs it as a Python package, pinned to version 4.11.1; it does not change or audit the tool itself.
What theHarvester is for
- Early recon on a domain you are authorised to assess.
- Collecting staff addresses that show a company's email naming pattern.
- Choosing sources with -b to stay passive or to add keyed ones.
Run theHarvester with ot
ot run theharvester passes everything after the tool's name to theHarvester unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.
- Search two sources that need no API key.
ot run theharvester -d example.com -b crtsh,duckduckgo- Use three sources, allow 200 results each, and save the report as XML and JSON.
ot run theharvester -d example.com -b crtsh,rapiddns,hackertarget -l 200 -f report
Run it with the other domain tools and merge what they find into one list: ot scan domain example.com
Where the results go
ot run saves nothing itself: theHarvester's output goes to your terminal, a pipe, or wherever its own output option writes it. A scan is different. ot scan domain example.com prints one merged report, saves it into a case with --case <name>, and writes it to an HTML, JSON, or CSV file with -o. Cases stay on your machine, under ~/.ot/cases.
Before you run it
- Several sources only answer with an API key, set in theHarvester's own api-keys file.
- DNS resolution, brute force, and screenshot options contact the target directly. Leave them off for passive work.
Update, remove, inspect
ot info theharvester # details, and how it installs on this system
ot update theharvester # move to the version the registry pins
ot update theharvester --latest # take the newest upstream release instead
ot remove theharvester # remove itFull reference: the otinstaller docs, theHarvester on otinstaller.com, and the tool's own project page.
Pairs with
When open-source isn't enough
theHarvester collects what public sources expose about a domain. SearchIn's email and DNS providers add confidence-scored addresses with their sources and each host's records over time.
FAQ
theHarvester with otinstaller, answered
How do I install theHarvester on Windows, macOS, or Linux?
Install ot once with the one-line script on the otinstaller page, then run ot install theharvester. Ot puts it in a Python environment of its own under ~/.ot/uv, apart from your system Python, at version 4.11.1. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.
How do I run theHarvester through ot?
With ot run theharvester followed by theHarvester's own arguments, for example: ot run theharvester -d example.com -b crtsh,duckduckgo. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.
Is theHarvester part of ot scan?
Yes. ot scan domain example.com runs theHarvester with subfinder at the same time, lists every finding once with the tools that reported it, and puts findings confirmed by more than one tool first.
Does theHarvester need an API key or a login?
ot stores no key for it. Several sources only answer with an API key, set in theHarvester's own api-keys file.
Does theHarvester send traffic to the target?
The registry lists theHarvester as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".