How to use the zoomeye.zoomeye function in zoomeye

To help you get started, we’ve selected a few zoomeye examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github s0m30ne / s0m3poc / s0m3poc.py View on Github external
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!")

zoomeye

Python library and command-line tool for ZoomEye (https://www.zoomeye.org/doc)

GPL-2.0
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages