Skip to content

About

Bulk hostname lookup using shodan

Topics

Resources

Stars

14 stars

Watchers

2 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

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.

Prerequisite

  • pip install -r requirements.txt
  • Define your SHODAN_API_KEY in a file called .env in the root directory of the app.
  • Get your IPs in a file \n separated. See iplist.txt file for an example.

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.

# SHODAN_API_KEY=XXXXXXX python ipQuery.py -f myawesomepath/myawesomefilename.foo -d 1

TODO

  • Throttling for big queries.
  • Combine IPs to make one bulk query.

About

Bulk hostname lookup using shodan

Topics

Resources

Stars

14 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages