| Guide | GDE-121 |
| Topic | Domain reconnaissance |
| Domain | Digital infrastructure |
| Last tested | 23 November 2026 |
Short answer: To run theHarvester, install release 4.11.1, pass a domain with -d and pick keyless passive sources such as certspotter, hackertarget and thc with -b. A source that returns nothing may have failed, so check each source's outcome before you treat a missing host as absent.
What is theHarvester?
theHarvester is a free, open-source command-line tool that queries public sources, such as certificate transparency logs, passive DNS datasets and search engines, for the subdomains, hostnames, IP addresses and email addresses linked to a domain.
Each source is a module: you name the ones you want with -b. Release 4.11.1 merges what they return into one list; the development version on GitHub records which source produced each finding. In 4.11.1, 36 sources have an entry in the api-keys.yaml file, and several of those return nothing without a key.
Most modules are passive: they ask a provider what it already holds, so the lookup itself sends no traffic to the domain's servers, though each provider sees your query. DNS brute force, DNS resolution, takeover checks and screenshots go further and query or contact the hosts, so a later check can still reach the domain's infrastructure.
| • | Mapping the hostnames behind a domain named in a scam, leak or campaign |
| • | Finding the mail, login or test hosts an organisation exposes publicly |
| • | Dating a site's infrastructure from the certificates issued for it |
| • | Checking a claim about which services run on a domain |
How do you run theHarvester?
Six steps take you from a domain to a list of hostnames that two sources agree on.
theHarvester is free; the sources behind it vary, so we checked them directly.
theHarvester: theHarvester is the command-line tool itself; its project file lists Christian Martorella, Jay Townsend and Matthew Brown as authors. Release 4.11.1 (3 June 2026) is free under GPL-2.0, needs Python 3.12 or later and no login, and is also the current Kali Linux package. GitHub's main branch holds a rebuilt 5.0 in development, which needs Python 3.14 and had no tagged release on 23 November 2026.
Cert Spotter: Cert Spotter is SSLMate's certificate transparency search, behind the certspotter module. It answered without a key on 23 November 2026; SSLMate's $0 plan lists 10 full-domain queries an hour.
HackerTarget: HackerTarget's host search, behind the hackertarget module, returns hostnames with IP addresses from its DNS dataset. It answered without a key on 23 November 2026.
THC subdomain lookup: The THC lookup at ip.thc.org, behind the thc module, is free and keyless. It answered on 23 November 2026.
crt.sh: crt.sh is a free certificate transparency search behind the crtsh module. It returned 502 Bad Gateway on all four of our attempts on 23 November 2026.
What we tested: On 23 November 2026 we read the theHarvester 4.11.1 code and queried eight of its keyless sources by hand, signed out, for signalandshadow.io, our own domain, and a generated domain that does not exist. Cert Spotter, HackerTarget and THC returned matching hostnames; crt.sh and subdomain.center failed, AlienVault OTX asked us to authenticate, and urlscan and RapidDNS returned nothing. We could not run the theHarvester command line itself in our test environment.
Could not be run in our test environment; version, flags and its 55 sources read from the 4.11.1 code. | ||
13 certificates, four names including a wildcard, latest issued 14 October 2026. Generated domain: empty list. | ||
Three hostnames with IP addresses. Generated domain: "error invalid host". | ||
The same three hostnames: "Entries: 3/3". | ||
502 Bad Gateway on four attempts. | ||
"server busy (64 queries in flight)". | ||
"Anonymous access to this endpoint is limited. Please authenticate." | ||
Zero results: no scans of the domain on file. | ||
Zero results as a guest; consent prompt not accepted. |
One domain we own and one generated domain, each source checked by hand once, signed out, on one day: a snapshot, not a benchmark.
The Two-Source Rule: Cite a hostname only when two sources built on different data, such as a certificate log search and a DNS dataset, return it. Record every source's outcome, including zero and failed results, before you read anything into an absence.

