theHarvester is an OSINT tool used to gather emails, subdomains, hosts, IPs, and URLs from public sources like search engines and APIs. It is commonly used during reconnaissance and footprinting before deeper security testing.
Installation
Update Termux and install required packages:
pkg update && pkg upgrade -y && pkg install git python -yClone the official GitHub repository:
git clone https://github.com/laramies/theHarvester.gitMove into the directory:
cd theHarvesterInstall Python dependencies:
pip install -r requirements/base.txtCheck if theHarvester is working:
python theHarvester.py -h(Optional) Create a shortcut command:
ln -s $PWD/theHarvester.py $PREFIX/bin/theharvesterUsage Commands
Collect emails and subdomains using Bing:
theharvester -d example.com -b bingUse Google as a source:
theharvester -d example.com -b googleUse multiple sources at once:
theharvester -d example.com -b allLimit search results:
theharvester -d example.com -b bing -l 200Save output to HTML file:
theharvester -d example.com -b google -f result.htmlUse Shodan (API key required):
theharvester -d example.com -b shodanList all supported data sources:
theharvester -h