OSINT, Reconnaissance

Search for hosts information using Shodan

Shodan is the world’s first search engine for Internet-connected devices. Use Shodan to discover which of your devices are connected to the Internet, where they are located and who is using them.

ShodanHat is a free and open source python tool, licensed under MIT license, which helps you search for hosts information using shodan search engine. You need a Shodan API key.

git clone https://github.com/HatBashBR/ShodanHat.git

Dependencies

sudo pip2 install shodan
sudo pip2 install python-nmap

Options

-h, --help show this help message and exit
-i IP, --ip=IP info about one host
-l LIST, --list=LIST info about a list of hosts
-s SQ, --sq=SQ searchquery string
--nmap perform a nmap scan in the hosts
--setkey=SETKEY set your api key automatically
-r RANGE, --range=RANGE scan a range of ips. ex: 192.168.1.1-192.168.1.255
-o OUTPUT, --output=OUTPUT specify a output file
 
 
Nmap Options:
--sS TCP Syn Scan
--sT TCP Connect Scan
--sU UDP Scan

Usage

For One Host

python shodanhat.py -i IP

For a list of Hosts

python shodanhat.py -l list.txt