Skip to content

FashyGainz/shodan-bulk-ip-query

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shodan Bulk IP Query

This tool gets a list of IPs in a file (one IP per line) and queries shodan.io. It prints the query results in JSON format to stdout.

Usage

# python ipQuery.py will take as default filename: iplist.txt as filename to read the IPs from. You can always use -f or --filename as an argument to provide your filename.

# python -f myawesomepath/myawesomefilename.foo

Download Script: Use this script to look up available information from ip addresses in a list, then output them to be parsed in Shodan CLI.

# python ipDownload.py <list of ip addresses> <output file>

TODO

  • Throttling for big queries.

Fixed 03/20/19 by adding time.sleep() function with 2 seconds in the try and else. Also added some extra text to tell you when each lookup is completed.

  • Combine IPs to make one bulk query.

Fake and gay. I really dont care about this

About

Bulk hostname lookup using shodan

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%