All     Ethical Hacking     Networking     Programming     OSINT

theHarvester in Termux – Installation, Usage & Basic Commands

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 -y

Clone the official GitHub repository:

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

Move into the directory:

cd theHarvester

Install Python dependencies:

pip install -r requirements/base.txt

Check if theHarvester is working:

python theHarvester.py -h

(Optional) Create a shortcut command:

ln -s $PWD/theHarvester.py $PREFIX/bin/theharvester

Usage Commands

Collect emails and subdomains using Bing:

theharvester -d example.com -b bing

Use Google as a source:

theharvester -d example.com -b google

Use multiple sources at once:

theharvester -d example.com -b all

Limit search results:

theharvester -d example.com -b bing -l 200

Save output to HTML file:

theharvester -d example.com -b google -f result.html

Use Shodan (API key required):

theharvester -d example.com -b shodan

List all supported data sources:

theharvester -h