Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
    def search(self):
        try:
            url = self.url.format(counter=str(self.start), word=self.word)
            headers = {'User-Agent': self.user_agent}
            if self.proxy:
                proxies = {self.proxy.scheme: "http://" + self.proxy.netloc}
                req = requests.get(url, headers=headers, proxies=proxies)
            else:
                req = requests.get(url, headers=headers)

        except Exception as e:
            error(e)
            sys.exit(4)

        self.results += req.content.decode(req.encoding)
Beispiel #4
0
 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)
Beispiel #5
0
 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)
Beispiel #6
0
 def setup_domain(self):
     if not self.args.domain:
         error("[-] Please specify a domain name to search.")
         sys.exit(2)
     self.domain = self.args.domain
Beispiel #7
0
 def setup_domain(self):
     if not self.args.domain:
         error("[-] Please specify a domain name to search.")
         sys.exit(2)
     self.domain = self.args.domain