Skip to content

laramies/theHarvester

Repository files navigation

theHarvester

TheHarvester CI TheHarvester Docker Image CI Rawsec's CyberSecurity Inventory

About

theHarvester is a simple to use, yet powerful tool designed to be used during the reconnaissance stage of a red team assessment or penetration test. It performs open source intelligence (OSINT) gathering to help determine a domain's external threat landscape. The tool gathers names, emails, IPs, subdomains, and URLs by using multiple public resources that include:

Install and dependencies

Install uv:

curl -LsSf https://astral.sh/uv/install.sh | sh

Clone the repository:

git clone https://github.com/laramies/theHarvester
cd theHarvester

Install dependencies and create a virtual environment:

uv sync

Run theHarvester:

uv run theHarvester

Development

To install development dependencies:

uv sync --extra dev

To run tests:

uv run pytest

To run linting and formatting:

uv run ruff check
uv run ruff format

Passive modules

Active modules

  • DNS brute force: dictionary brute force enumeration
  • Screenshots: Take screenshots of subdomains that were found

Modules that require an API key

Documentation to setup API keys can be found at - https://github.com/laramies/theHarvester/wiki/Installation#api-keys

  • bevigil - 50 free queries/month, 1k queries/month $50
  • bufferoverun - 100 free queries/month, 10k/month $25
  • builtwith - 50 free queries ever, $2950/yr
  • censys - 500 credits $100
  • criminalip - 100 free queries/month, 700k/month $59
  • dehashed - 500 credts $15, 5k credits $150
  • dnsdumpster - 50 free querries/day, $49
  • fullhunt - 50 free queries, 200 queries $29/month, 500 queries $59/month
  • github-code
  • haveibeenpwned - 10 email searches/min $4.50, 50 email searches/min $22
  • hunter - 50 credits/month free, 12k credits/yr $34
  • hunterhow - 10k free API results per 30 days, 50k API results per 30 days $10
  • intelx
  • leaklookup - 20 credits $10, 50 credits $20, 140 credits $50, 300 credits $100
  • netlas - 50 free requests/day, 1k requests $49, 10k requests $249
  • onyphe - 10M results/month $587
  • pentestTools - 5 assets netsec $95/month, 5 assets webnetsec $140/month
  • projecDiscovery - requires work email. Free monthly discovery and vulnerability scans on sign-up email domain, enterprise $
  • rocketreach - 100 email lookups/month $48, 250 email lookups/month $108
  • securityscorecard
  • securityTrails - 50 free queries/month, 20k queries/month $500
  • shodan - Freelancer $69 month, Small Business $359 month
  • tomba - 25 searches/month free, 1k searches/month $39, 5k searches/month $89
  • venacus - 1 search/day free, 10 searches/day $12, 30 searches/day $36
  • whoisxml - 2k queries $50, 5k queries $105
  • zoomeye - 5 results/day free, 30/results/day $190/yr

Comments, bugs, and requests

Main contributors

  • Twitter Follow Matthew Brown @NotoriousRebel1
  • Twitter Follow Jay "L1ghtn1ng" Townsend @jay_townsend1
  • Twitter Follow Lee Baird @discoverscripts

Thanks

  • John Matherly - Shodan project
  • Ahmed Aboul Ela - subdomain names dictionaries (big and small)