The Shodan python package provides a search_cursor function that make looping through search results easier. I've updated the script to make use of that instead of setting a finite range of pages to loop through.
I've also added support for reading the SHODAN_API_KEY env variable from a .env file.
Hey, thanks for contributing! Taking a glance at it, I like what you've done here! I will get around to this soon. I am focused on adding additional C2 infrastructure at the moment.
The Shodan python package provides a
search_cursor
function that make looping through search results easier. I've updated the script to make use of that instead of setting a finite range of pages to loop through.I've also added support for reading the
SHODAN_API_KEY
env variable from a.env
file.