Skip to content

Instantly share code, notes, and snippets.

@jimywork
Created December 8, 2019 15:42
Show Gist options
  • Save jimywork/3ec4ab343f5a9e8adcac15e01f280882 to your computer and use it in GitHub Desktop.
Save jimywork/3ec4ab343f5a9e8adcac15e01f280882 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import shodan
import requests
def goipsms (api=None, dork=None, limit=None, offset=None) :
try:
api = shodan.Shodan(api)
res = api.search(dork, limit=limit, offset=offset)
except shodan.APIError as error:
print(error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment