Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

theHarvester

> 数据库
Open source

E-mails, subdomains and names Harvester - OSINT

16.9K stars0 likes1 views
WebsiteGitHub

About

E-mails, subdomains and names Harvester - OSINT

theHarvester

theHarvester gathers open-source intelligence about a domain or organization from search engines, certificate transparency logs, DNS datasets, code repositories, threat-intelligence platforms, and other public sources.

Use theHarvester during the early reconnaissance stage of an authorized security assessment. Run it only against targets you own or have explicit permission to test.

What it does

theHarvester combines many public data sources in one run and normalizes their results. It can collect hostnames, email addresses, IP addresses, URLs, ASNs, people, and breach names. Optional actions cover DNS, RouteViews, Shodan, takeover checks, virtual hosts, API paths, and screenshots.

Use the CLI for one-off work or HarvestView for a local browser workflow. JSONL and SQLite retain structured evidence and provenance. JSON and XML remain available for existing integrations.

Providers control their own availability, quotas, and response formats, so individual sources may change independently of theHarvester.

Package versions

Architecture at a glance

Discovery routes and enrichment

HarvestView run desk

Quick start

theHarvester requires Python 3.14. The repository's .python-version lets uv select it automatically:

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

See the installation guide for platform-specific setup and packaged distributions.

Common workflows

Query several passive sources:

bash
uv run theHarvester -d example.com -b crtsh,certspotter,commoncrawl

Three discovery sources run at once by default. Use -j or --source-workers to change the worker count. The REST API and HarvestView expose the same setting.

Run every source that can contribute subdomains:

bash
uv run theHarvester -d example.com -b subdomains

Combine capability selectors, or mix them with explicit source names:

bash
uv run theHarvester -d example.com -b emails,urls,certspotter

Capability selectors form a union and choose which sources run. They do not discard other result types returned by those sources. Available selectors are subdomains, emails, ips, asns, urls, people, and breaches. -b all runs every cataloged P0 passive source. P1 DNS and P2 direct sources require explicit selection.

Pass --limit 0 to remove the shared per-source result cap and local page ceilings. Each adapter then runs until its provider is exhausted. Provider quotas and runtime safeguards still apply. If a provider or safety limit stops a source after it has retained results, the run keeps them and records the source as partial with the stop reason.

Exclude hostname results while retaining other result types:

bash
uv run theHarvester -d example.com -b emails,ips,urls --no-hosts -f non-host-results

--no-hosts skips hostname-only sources and omits hostname results while keeping other result types. It cannot be combined with actions that depend on hostnames. HarvestView and the REST API expose the same option as no_hosts.

Save results as JSONL:

bash
uv run theHarvester -d example.com -b crtsh,certspotter -f report

This writes report.jsonl for automation and interchange. The same command also writes legacy report.json and report.xml compatibility reports.

Resolve discovered hosts for an authorized domain with the default resolver list:

bash
AUTHORIZED_DOMAIN='replace-with-a-domain-you-control'
uv run theHarvester -d "$AUTHORIZED_DOMAIN" -b crtsh,certspotter -r

List every option and its current behavior:

bash
uv run theHarvester -h

Activity and scope

Passive sources are P0. DNS resolution, brute force, recursive DNS, and reverse lookup are P1. HTTP, TLS, screenshot, takeover, virtual-host, port, and endpoint actions are P2. P1 and P2 activity runs only when you select it.

Common active options include DNS resolution (-r), DNS brute force (-c), reverse DNS (-n), recursive DNS (--dns-recursive-depth), takeover checks (-t), API path scanning (-a), and screenshots (--screenshot). A takeover indicator is evidence for review, not proof that a provider resource can be claimed.

Read Responsible use and scope before active work. Operator workflows covers limits, resolvers, proxies, and action-specific behavior. Screenshot capture requires a Playwright-compatible browser; Baidu uses it when available and otherwise falls back to HTTP.

HarvestView and REST API

harvestview starts the local web application and API on 127.0.0.1:5000 by default:

bash
export THEHARVESTER_API_KEY='replace-with-a-long-random-value'
uv run harvestview

Open HarvestView to start runs and inspect their results, or Schedules to persist timezone-aware run schedules across one or many authorized targets. Each occurrence creates an ordinary finite run per target, and the single local worker executes them serially. SQLAlchemy stores schedule control state in a separate mode-0600 SQLite database that is excluded from portable SQLite run exports. The browser receives a derived HttpOnly session cookie and never stores the API key. See the installation guide for local assets, screenshots, and isolated deployments.

Open Swagger or ReDoc for the automation contract.

Docker Compose

The Compose service runs as an unprivileged user and binds only to host loopback. It stores runs in a named volume and reads the operator key from a file secret:

bash
install -d -m 0700 .secrets
openssl rand -hex 32 > .secrets/operator-api-key
chmod 0444 .secrets/operator-api-key
docker compose up --build -d
docker compose ps
bash
docker compose logs -f theharvester.svc.local
docker compose down
Route Purpose
GET /api/v1/sources List registered discovery sources and capabilities.
POST /api/v1/runs Submit a finite enumeration run.
GET /api/v1/runs List durable run records.
GET /api/v1/runs/{run_id} Retrieve lifecycle state, normalized results, source outcomes, and hostname yields.
POST /api/v1/runs/{run_id}/cancel Cancel queued or running work.
POST /api/v1/runs/import Import JSONL evidence without executing discovery.
POST /api/v1/runs/import-database Import completed runs from a theHarvester SQLite database.
GET /api/v1/runs/export-database Export all completed run evidence as a portable SQLite database.
GET /api/v1/runs/{run_id}/export Export normalized evidence as JSONL.
GET/POST /api/v1/schedules List or create persistent local schedules.
GET /api/v1/schedules/health Report scheduler and execution-worker availability.
GET/PUT/DELETE /api/v1/schedules/{schedule_id} Read, replace, or delete a schedule without deleting its runs.
POST /api/v1/schedules/{schedule_id}/pause Pause future occurrences without cancelling queued or running work.
POST /api/v1/schedules/{schedule_id}/resume Resume future occurrences.
POST /api/v1/schedules/{schedule_id}/run-now Queue one extra occurrence without changing recurrence timing.
GET /api/v1/schedules/{schedule_id}/dispatches List per-target dispatch history.

HarvestView can start screenshot and DNS brute-force runs from a hostname result. Each action creates its own run and leaves the original evidence unchanged.

API clients send THEHARVESTER_API_KEY in the X-API-Key header. Provider API settings stay on the server. Keep the service on localhost unless you add TLS and network access controls. The REST API guide documents requests, imports, exports, and authentication.

Discovery sources

Select sources by name or by a result route listed below. -b all runs the P0 sources. P1 and P2 sources require explicit selection.

Result types in this table always appear in this order: subdomains, emails, ips, asns, urls, people, breaches. A result followed by only means the source contributes no other result type. The API key column refers to provider settings in api-keys.yaml; some providers require more than one value. Optional means the source can run without a key.

The shodan source contributes subdomains. Shodan host enrichment through -s or --shodan is a separate action and is not a source result route.

View all 59 discovery sources
Source Returns Activity API key
apis-guru subdomains, emails, urls P0 No
arquivo subdomains only P0 No
baidu subdomains, emails P0 No
bevigil subdomains, urls P0 Required
brave subdomains, emails P0 Required
bufferoverun subdomains, ips P0 Required
builtwith subdomains, urls P0 Required
censys subdomains, emails P0 Required
certspotter subdomains only P0 No
commoncrawl subdomains only P0 No
criminalip subdomains, ips, asns P2 Required
crt-name subdomains only P0 No
crtsh subdomains only P0 No
dehashed emails, ips P0 Required
dnsdb subdomains only P0 Required
dnsdumpster subdomains, ips P0 Required
duckduckgo subdomains, emails P0 No
dymo subdomains only P0 Required
fofa subdomains, ips P0 Required
fullhunt subdomains only P0 Required
github-code subdomains, emails P0 Required
gitlab subdomains, emails, urls P0 No
hackertarget subdomains, ips P0 Optional
haveibeenpwned breaches only P0 No
hibpverified emails, breaches P0 Required
hudsonrock subdomains, emails, ips P0 No
hunter subdomains, emails P0 Required
hunterhow subdomains only P0 Required
intelx subdomains, emails, urls P0 Required
leakix subdomains only P0 Required
leaklookup emails, breaches P0 Required
mojeek subdomains, emails P0 Optional
netlas subdomains only P0 Required
onyphe subdomains, ips, asns P0 Required
otx subdomains, ips P0 No
pentesttools subdomains, ips P1 Required
projectdiscovery subdomains only P0 Required
rapiddns subdomains, ips P0 No
robtex ips only P0 No
rocketreach emails, urls P0 Required
securityscorecard subdomains, ips P0 Required

Issues· 6 open

View all issuesOpen on GitHub
  • #2615

    `master` does not import: `except asyncio.CancelledError, Exception:` in `__main__.py` (SyntaxError on every invocation)

    Updated Sep 17, 2026
  • #2413

    Add Lunar Domain Exposure API as an optional enrichment source

    Updated Sep 10, 2026
  • #2606

    [Bug]: github-code module skipped due to case-sensitivity issue in api-keys.yaml parsing

    Updated Sep 9, 2026
  • #1501

    PyPI package

    Updated Jul 12, 2025

> Tags

Pythonblueteamdiscoveryemailsinformation-gathering

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库