Skip to content

Simple script that runs an IP list agains Shodan and grabs the returned ports.

Notifications You must be signed in to change notification settings

Colgaton/shodan-ip-port-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

shodan-ip-port-export

Requires Shodan support, install it using:

pip install --upgrade shodan

Only tested with Python 3, YMMV.

Usage:

shipexport.py -i -o -f , -d -t

Where:

-i - file with a list of IPs, one per line, this is mandatory. -o - file to save the results, mandatory unless you use -p. -f , - spit the results in a csv or splunk friendly format, mandatory. -d - seconds to wait between calls, Shodan will throttle you if are quering too fast (1 is a good value). Optional, default is 0. -t - api token from Shodan. Mandatory.

There is also a hidden -p option, that will print the output to the screen instead of sending it to .

This script works for me, my python knowledge is not great and I'm not a developer so bear with me. Also there is no check for inputs, so make sure you know what you are passing to the script. I'm not responsible for any damage.

About

Simple script that runs an IP list agains Shodan and grabs the returned ports.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages