- by x32x01 ||
If you're getting into ethical hacking, penetration testing, or OSINT (Open-Source Intelligence), then you’ve probably heard about a powerful tool called theHarvester. It’s one of the most popular recon tools used by security researchers to collect information about any domain - such as emails, subdomains, hosts, public records, and more 🔍
In this guide, we’ll walk step-by-step through how to install theHarvester on Ubuntu 18.04 LTS, using simple American English and a clean tutorial style that’s perfect for beginners and pros alike. We'll also include real command-line examples so you can follow along easily.
Let’s jump right in! ✨
It can collect:
And it does all this using data from:
It’s fast, lightweight, easy to use, and extremely effective - which is why penetration testers and OSINT analysts rely on it every day.
⭐ Works with dozens of public data sources
⭐ Helps you identify exposed assets
⭐ Great for security assessments
⭐ Perfect for OSINT beginners
⭐ Ideal for pentesting recon
⭐ Fast and customizable
Whether you're scanning your own company or analyzing a target during a bug bounty program, theHarvester gives you a strong starting point.
This will create a folder called theHarvester in your current directory.
Now you're inside the project and ready for installation.
This installs pip, which is required for downloading the tool’s dependencies.
Try installing the development requirements first:
If this file doesn’t exist or gives you an error, use the base requirements:
This will install all Python modules needed for theHarvester to run.
This displays the help menu with all available options and flags.
If you see the help output, congrats - theHarvester is working! 🎉
This command will pull up to 500 results from Google for gmail.com.
This scans the Bing search engine for exposed hosts and subdomains.
This will generate:
The tool works fine with other Python 3 versions on most systems.
This tells theHarvester to use every available search engine at once.
And now you know exactly how to install and use theHarvester on Ubuntu 18.04 LTS, with practical examples and clear commands you can run right away.
If you'd like more tutorials like this - OSINT tools, Kali Linux, Metasploit, bug bounty techniques - just tell me and I’ll write them for you! 🚀🔥
In this guide, we’ll walk step-by-step through how to install theHarvester on Ubuntu 18.04 LTS, using simple American English and a clean tutorial style that’s perfect for beginners and pros alike. We'll also include real command-line examples so you can follow along easily.
Let’s jump right in! ✨
What Is theHarvester? 🤔🔍
theHarvester is an open-source information gathering tool used during the reconnaissance phase in penetration testing. It pulls data from multiple public search engines and online sources to give you valuable details about a target domain.It can collect:
- Email addresses
- Subdomains
- Hosts
- Employee names
- Public IP data
- Metadata
And it does all this using data from:
- Bing
- Yahoo
- DuckDuckGo
- Baidu
- Shodan
- And many more…
It’s fast, lightweight, easy to use, and extremely effective - which is why penetration testers and OSINT analysts rely on it every day.
Why Use theHarvester? 🎯
Here’s what makes it so powerful:⭐ Works with dozens of public data sources
⭐ Helps you identify exposed assets
⭐ Great for security assessments
⭐ Perfect for OSINT beginners
⭐ Ideal for pentesting recon
⭐ Fast and customizable
Whether you're scanning your own company or analyzing a target during a bug bounty program, theHarvester gives you a strong starting point.
How to Install theHarvester on Ubuntu 18.04 LTS 🐧⚙️
Let’s go through the full installation process step-by-step. The commands are clean, simple, and beginner-friendly.Step 1: Clone theHarvester from GitHub ⬇️📦
Use git clone to download the latest version of theHarvester: Code:
git clone https://github.com/laramies/theHarvester Step 2: Navigate into the Tool’s Folder 📁
Move into the directory:cd theHarvesterNow you're inside the project and ready for installation.
Step 3: Install pip for Python3 🐍📦
Run the following command:sudo apt install python3-pipThis installs pip, which is required for downloading the tool’s dependencies.
Step 4: Install Dependencies Requirements 📦
TheHarvester includes two possible requirement files:- requirements/dev.txt
- requirements/base.txt
Try installing the development requirements first:
Bash:
python3.7 -m pip install -r requirements/dev.txt If this file doesn’t exist or gives you an error, use the base requirements:
Bash:
python3.7 -m pip install -r requirements/base.txt Step 5: Run theHarvester for the First Time 🚀
To make sure everything is installed correctly, run: Bash:
python3.7 theHarvester.py -h If you see the help output, congrats - theHarvester is working! 🎉
Step 6: Real-World Example - Collect Emails from Google 📧🔍
Here’s a simple example of how to collect email addresses from a domain: Bash:
python3.7 theHarvester.py -d gmail.com -l 500 -b google What the flags mean:
| Flag | Description |
|---|---|
| -d | Target domain |
| -l | Number of results |
| -b | Data source (search engine) |
Example: Find Subdomains Using Bing 🌐
To gather subdomains for Facebook: Bash:
python3.7 theHarvester.py -d facebook.com -b bing Example: Export Results to HTML 📝
To generate a clean HTML report: Bash:
python3.7 theHarvester.py -d tesla.com -b google -f tesla-report This will generate:
- tesla-report.html
- tesla-report.xml
Having Trouble Running Python 3.7? ❗🐍
If your Ubuntu version doesn't include Python 3.7, simply use: Bash:
python3 -m pip install -r requirements/base.txt
python3 theHarvester.py -h Best Data Sources to Use with theHarvester 📡
Here are the most effective search engines and services to get rich OSINT data:- Bing
- DuckDuckGo
- Yahoo
- Baidu
- Shodan
-b allThis tells theHarvester to use every available search engine at once.
Pro Tips Before Using theHarvester 💡🔥
To get better results:- Use a VPN to avoid rate limits
- Save results in HTML format for easier reading
- Try different search engines for broader coverage
- Increase results with -l 1000
- Combine results with tools like Recon-ng or Maltego
Final Thoughts 🎉
theHarvester is one of the most important tools in the cybersecurity world. Whether you’re doing penetration testing, bug bounty work, or OSINT investigations, this tool gives you the data you need to understand your target before running deeper scans.And now you know exactly how to install and use theHarvester on Ubuntu 18.04 LTS, with practical examples and clear commands you can run right away.
If you'd like more tutorials like this - OSINT tools, Kali Linux, Metasploit, bug bounty techniques - just tell me and I’ll write them for you! 🚀🔥