montysecurity / C2-Tracker

Live Feed of C2 servers, tools, and botnets
545 stars 57 forks source link

Optimize Shodan queries to use search_cursor #2

Closed akshaysth closed 1 year ago

akshaysth commented 1 year ago

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.

montysecurity commented 1 year ago

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.