예제 #1
0
 def process(self):
     self.url = "https://" + self.server + "/ipv4/_search?q=" + str(
         self.word) + "&page=1"
     self.do_search()
     self.counter = 2
     pages = censysparser.parser(self)
     totalpages = pages.search_numberofpages()
     while self.counter <= totalpages:
         try:
             self.page = str(self.counter)
             self.url = "https://" + self.server + "/ipv4/_search?q=" + str(
                 self.word) + "&page=" + str(self.page)
             print("\tSearching Censys results page " + self.page + "...")
             self.do_search()
         except Exception as e:
             print("Error occurred: " + str(e))
         self.counter += 1
예제 #2
0
 def get_ipaddresses(self):
     try:
         ips = censysparser.parser(self)
         return ips.search_ipaddresses()
     except Exception as e:
         print("Error occurred: " + str(e))
예제 #3
0
 def get_hostnames(self):
     try:
         hostnames = censysparser.parser(self)
         return hostnames.search_hostnames()
     except Exception as e:
         print("Error occurred: " + str(e))
예제 #4
0
파일: censys.py 프로젝트: wez3/theHarvester
 def get_totalnumberofpages(self):
     try:
         pages = censysparser.parser(self)
         return pages.search_numberofpages()
     except Exception as e:
         print("Error occurred: " + str(e))