Python shodan.WebAPI() Examples
The following are 7
code examples of shodan.WebAPI().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
shodan
, or try the search function
.
Example #1
Source File: shodansearch.py From Yuki-Chan-The-Auto-Pentest with MIT License | 5 votes |
def __init__(self, host): self.host = host self.key = "oCiMsgM6rQWqiTvPxFHYcExlZgg7wvTt" if self.key == "": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.key)
Example #2
Source File: shodansearch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 5 votes |
def __init__(self, host): self.host = host self.key = "oCiMsgM6rQWqiTvPxFHYcExlZgg7wvTt" if self.key == "": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.key)
Example #3
Source File: shodansearch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 5 votes |
def __init__(self, host): self.host = host self.key = "oCiMsgM6rQWqiTvPxFHYcExlZgg7wvTt" if self.key == "": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.key)
Example #4
Source File: shodansearch.py From luscan-devel with GNU General Public License v2.0 | 5 votes |
def __init__(self,host): self.host=host self.shodan_api_key = "oykKBEq2KRySU33OxizNkOir5PgHpMLv" if self.shodan_api_key =="": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.shodan_api_key)
Example #5
Source File: shodan.py From luscan-devel with GNU General Public License v2.0 | 5 votes |
def run(self, info): # This is where we'll collect the data we'll return. results = [] # Skip unsupported IP addresses. if info.version != 4: return ip = info.address parsed = netaddr.IPAddress(ip) if parsed.is_loopback() or \ parsed.is_private() or \ parsed.is_link_local(): return # Query Shodan for this host. try: key = self.get_api_key() api = WebAPI(key) shodan = api.host(ip) except Exception, e: tb = traceback.format_exc() Logger.log_error("Error querying Shodan for host %s: %s" % (ip, str(e))) Logger.log_error_more_verbose(tb) return # Make sure we got the same IP address we asked for.
Example #6
Source File: shodansearch.py From kalel with GNU General Public License v3.0 | 5 votes |
def __init__(self, host): self.host = host self.key = "oCiMsgM6rQWqiTvPxFHYcExlZgg7wvTt" if self.key == "": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.key)
Example #7
Source File: shodansearch.py From hackers-tool-kit with Apache License 2.0 | 5 votes |
def __init__(self, host): self.host = host self.key = "oCiMsgM6rQWqiTvPxFHYcExlZgg7wvTt" if self.key == "": print "You need an API key in order to use SHODAN database. You can get one here: http://www.shodanhq.com/" sys.exit() self.api = WebAPI(self.key)