mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-26 07:23:17 +08:00
code cleanup
This commit is contained in:
parent
f52af72e33
commit
4e9c8bcc00
1 changed files with 0 additions and 2 deletions
|
@ -19,7 +19,6 @@ def search_hostnames(self):
|
|||
hostnamelist = self.souphosts.findAll('tt')
|
||||
for hostnameitem in hostnamelist:
|
||||
self.hostnames.append(hostnameitem.text)
|
||||
print ("FOUND HOSTNAMES:" + str(self.hostnames))
|
||||
return self.hostnames
|
||||
except Exception as e:
|
||||
print("Error occurred in the Censys module: hostname parser: " + str(e))
|
||||
|
@ -34,7 +33,6 @@ def search_hostnamesfromcerts(self):
|
|||
hostnamesclean = re.sub(r'\.\.\.',r'',hostnamesclean)
|
||||
self.hostnamesfromcerts.extend(hostnamesclean.split(","))
|
||||
self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts)) #filter out duplicates
|
||||
print ("FOUND HOSTNAMESFROMCERTS:" + str(self.hostnamesfromcerts))
|
||||
return self.hostnamesfromcerts
|
||||
except Exception as e:
|
||||
print("Error occurred in the Censys module: certificate hostname parser: " + str(e))
|
||||
|
|
Loading…
Reference in a new issue