Skip to content

Instantly share code, notes, and snippets.

@MayankFawkes
Created October 1, 2019 17:34
Show Gist options
  • Save MayankFawkes/67ae270610fda4a45a56be4a4dd7541c to your computer and use it in GitHub Desktop.
Save MayankFawkes/67ae270610fda4a45a56be4a4dd7541c to your computer and use it in GitHub Desktop.
shodan search
import shodan
api=shodan.Shodan(API_KEY_HERE)
results = api.search('product:"Memcached" port:11211')
print('Results found: {}'.format(results['total']))
for n in results["matches"]:
print("http://"+n["ip_str"]+":"+str(n["port"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment