def process(self): alert("\n[+] Searching in {0}..\n".format(self.name)) while self.start < self.limit: self.search() time.sleep(1) self.start += self.step message("\tSearching {0} results...".format(self.start))
def display_results(self): if not self.results: error("\nNo emails found!") sys.exit(4) alert("\n\n[+] {} emails found:".format(len(self.results)), underline=True) if not self.args.noprint: message(self.results)
def run(self): results = [] for engine in self.engines: self.initialize(engine) alert("\n[+] Searching in {0} + Linkedin..\n".format(engine["name"])) self.process() results.extend(self.get_emails()) return results
def search(self): if self.engine == "all": alert("[+] Searching everywhere..") for search_engine in self.plugins: if search_engine in self.excluded: continue self.results += self.plugins.execute(search_engine, self.domain, self.limit, self.proxy, self.user_agent) elif self.engine not in self.plugins: error("Search engine plugin not found") sys.exit(3) else: self.results = self.plugins.execute(self.engine, self.domain, self.limit, self.proxy, self.user_agent) self.results = unique(self.results)
def display(self): alert("[+] Available plugins:", underline=True) for module in self: message(module) sys.exit(1)