Skip to main content
ASM Cheatsheet

theHarvester

Beginner

Email, subdomain, and host OSINT gathering

https://github.com/laramies/theHarvester

Installation

# Clone and install
git clone https://github.com/laramies/theHarvester.git
cd theHarvester
pip3 install -r requirements.txt

# Or via package manager
sudo apt install theharvester

Usage

Basic Usage

# Email harvesting from Google
python3 theHarvester.py -d example.com -b google

# Multiple search engines
python3 theHarvester.py -d example.com -b google,bing,yahoo,duckduckgo

# Limit results
python3 theHarvester.py -d example.com -l 100 -b google

# Save results
python3 theHarvester.py -d example.com -b all -f results

Advanced Options

# DNS brute force
python3 theHarvester.py -d example.com -b google -c

# Shodan integration
python3 theHarvester.py -d example.com -b shodan

# Screenshot taking
python3 theHarvester.py -d example.com -b google -s

# Verify hostnames
python3 theHarvester.py -d example.com -b google -v