Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def exploit(self):
if not self.payload:
self.output("[!] please config the payload first!")
else:
if self.query:
z = zoomeye.Zoomeye("YOUR EMAIL", "YOUR PASSWORD")
try:
z.run(self.poc.exploit, self.query, pages = self.pages, facets = self.facets, port = self.port, search_type = self.search_type)
while z.isReady():
time.sleep(1)
except KeyboardInterrupt,e:
self.output("[!] user abort! Waiting for payload to stop...")
z.Done = True
while not z.queue.empty():
tmp = z.queue.get()
elif self.target:
try:
self.poc.exploit(self.target)
except KeyboardInterrupt,e:
self.output("[!] user abort!")
else:
self.output("[!] please config target or zoomeye query first!")