mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 18:03:10 +08:00
removed unnecessary print from censysparser.py
This commit is contained in:
parent
831d1f6e1b
commit
47497abe18
1 changed files with 2 additions and 6 deletions
|
@ -27,7 +27,6 @@ def search_hostnamesfromcerts(self):
|
|||
self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts))
|
||||
matchingdomains = [s for s in self.hostnamesfromcerts if str(self.domain) in s] #filter out domains issued to other sites
|
||||
self.hostnamesfromcerts = matchingdomains
|
||||
print("STOP")
|
||||
return self.hostnamesfromcerts
|
||||
except Exception as e:
|
||||
print("Error occurred in the Censys module: certificate hostname parser: " + str(e))
|
||||
|
@ -46,7 +45,7 @@ def search_numberofpageshosts(self):
|
|||
items = self.souphosts.findAll(href=re.compile("page"))
|
||||
for item in items:
|
||||
if (item.text !='next'): #to filter out pagination
|
||||
self.numberofpageshosts+=1
|
||||
self.numberofpageshosts+= 1
|
||||
return self.numberofpageshosts
|
||||
except Exception as e:
|
||||
print("Error occurred in the Censys module IP search: page parser: " + str(e))
|
||||
|
@ -59,7 +58,4 @@ def search_numberofpagescerts(self):
|
|||
self.numberofpagescerts += 1
|
||||
return self.numberofpagescerts
|
||||
except Exception as e:
|
||||
print("Error occurred in the Censys module certificate search: page parser: " + str(e))
|
||||
|
||||
|
||||
|
||||
print("Error occurred in the Censys module certificate search: page parser: " + str(e))
|
Loading…
Reference in a new issue