Friday, October 30, 2015

TheHarvester Linux Information gathering Tool

Ever you come in the situation where you want to send email to users of certain domain but you can't find any valid email addresses? theHarvester information gathering tool can help you.
theHarvester is a tool for gathering e-mail accounts, sub-domain names, virtual hosts, open ports/ banners, and employee names from different public sources (search engines, pgp key servers).
The sources supported are:

Google – emails, subdomains/hostnames
Google profiles – Employee names
Bing search – emails, subdomains/hostnames, virtual hosts
Pgp servers – emails, subdomains/hostnames
LinkedIn – Employee names
Exalead – emails, subdomain/hostnames

To get started, if theHarvester is not available in your Linux distribution, go and download it from here or check the latest version from here.

Migrate to download directory and extract the file

➜  ~   cd /home/james/Downloads
➜  ~  tar -xvzf  theHarvester-2.2a.tar.gz

Migrate to extracted directory and provide execute permission to the

➜  ~   cd theHarvester-2.2a/
➜  ~  chmod 755

After getting in to that, simply run ./ , it will display version and other option that can be used with this tool with detailed description as seen on the diagram below,

To use the tool, use the following syntax

➜  ~ ./ -d [domainname] -l 300 -b [search engine name]

-The command below will search all email addresses, sub-domains,, virtual hosts found any where in google.

➜  ~ ./ -d -l 300 -b google  

-The command below will search email address, sub-domains, virtual hosts etc of domain found in most search engines.

➜  ~ ./ -d -l 300 -b all 

If you are using KaliLinux, an Advanced Penetration Testing Linux distribution used for Penetration Testing, Ethical Hacking and network security assessments the tool comes pre-installed.

This tool is designed to help the penetration tester on an earlier stage; it is an effective, simple and easy to use, so don't abuse it, if you use it for hacking, hack ethically.