removed unnecessary print from censysparser.py

This commit is contained in:
Janos Zold 2018-12-23 17:03:18 +00:00
parent 831d1f6e1b
commit 47497abe18

View file

@ -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))