The Complete Guide to Shodan: Collect. Analyze. Visualize. Make Internet Intelligence Work For You. by John Matherly

The Complete Guide to Shodan: Collect. Analyze. Visualize. Make Internet Intelligence Work For You. by John Matherly

Author:John Matherly
Language: eng
Format: mobi, azw3, epub
Published: 2016-02-27T22:00:00+00:00


Lets use the banner information to determine which database names are most popular and how much data is publicly exposed on the Internet! The basic workflow will be to:

Download all MongoDB banners

Process the downloaded file and output a list of top 10 database names as well as the total data size

Downloading the data is simple using the Shodan command-line interface:

shodan download --limit -1 mongodb.json.gz product:mongodb

The above command says to download all results (–limit -1) into a file called mongodb.json.gz for the search query product:mongodb. Now we just need a simple Python script to process the Shodan data file. To easily iterate over the file we’re going to use the shodan.helpers.iterate_files() method:

import shodan.helpers as helpers import sys # The datafile is the 1st argument to the command datafile = sys.argv[1] for banner in helpers.iterate_files(datafile): # Now we have the banner



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.