mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-26 15:32:56 +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')
|
hostnamelist = self.souphosts.findAll('tt')
|
||||||
for hostnameitem in hostnamelist:
|
for hostnameitem in hostnamelist:
|
||||||
self.hostnames.append(hostnameitem.text)
|
self.hostnames.append(hostnameitem.text)
|
||||||
print ("FOUND HOSTNAMES:" + str(self.hostnames))
|
|
||||||
return self.hostnames
|
return self.hostnames
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error occurred in the Censys module: hostname parser: " + str(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)
|
hostnamesclean = re.sub(r'\.\.\.',r'',hostnamesclean)
|
||||||
self.hostnamesfromcerts.extend(hostnamesclean.split(","))
|
self.hostnamesfromcerts.extend(hostnamesclean.split(","))
|
||||||
self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts)) #filter out duplicates
|
self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts)) #filter out duplicates
|
||||||
print ("FOUND HOSTNAMESFROMCERTS:" + str(self.hostnamesfromcerts))
|
|
||||||
return self.hostnamesfromcerts
|
return self.hostnamesfromcerts
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error occurred in the Censys module: certificate hostname parser: " + str(e))
|
print("Error occurred in the Censys module: certificate hostname parser: " + str(e))
|
||||||
|
|
Loading…
Reference in a new issue