Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def zoomeye_api_test():
zoomeye = ZoomEye()
zoomeye.username = raw_input('ZoomEye Username: ')
zoomeye.password = getpass.getpass(prompt='ZoomEye Password: ')
zoomeye.login()
print(zoomeye.resources_info())
data = zoomeye.dork_search('solr')
show_site_ip(data)
data = zoomeye.dork_search('country:cn')
show_site_ip(data)
data = zoomeye.dork_search('solr country:cn')
show_site_ip(data)
data = zoomeye.dork_search('solr country:cn', resource='host')
show_ip_port(data)
def __init__(self, tID, q):
"""ZoomEyeProc init function, defines id and feeding queue"""
FeederBase.__init__(self, tID, 'ZoomEyeProc', q)
self.api = zoomeye.ZoomEye()
self.api.username = Zoom_CREDS[0]
self.api.password = Zoom_CREDS[1]
self.api.login()