mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-10 17:13:07 +08:00
Travis fixes/flake8 fixes
This commit is contained in:
parent
ee5bf192ed
commit
4a7bfe86f3
4 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
|||
[flake8]
|
||||
ignore = E501, F405, F403, E402
|
||||
exclude = theHarvester/discovery/DNS/*,theHarvester/discovery/IPy.py,theHarvester/discovery/s3_scanner.py
|
||||
exclude = theHarvester/discovery/DNS/*,theHarvester/discovery/IPy.py,theHarvester/discovery/s3_scanner.py,theHarvester/discovery/dnssearch.py
|
3
setup.py
3
setup.py
|
@ -24,6 +24,7 @@
|
|||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
|
@ -35,6 +36,6 @@
|
|||
'wordlists/dorks.txt',
|
||||
'wordlists/names_small.txt'
|
||||
]
|
||||
)
|
||||
)
|
||||
],
|
||||
)
|
||||
|
|
|
@ -118,8 +118,7 @@ def construct_dorks(self):
|
|||
self.links = tuple(self.database + str(dork).replace(':', colon).replace('+', plus).replace('.', period).replace('"', double_quote)
|
||||
.replace('*', asterick).replace('[', left_bracket).replace(']', right_bracket)
|
||||
.replace('?', question_mark).replace(' ', space).replace('/', slash).replace("'", single_quote)
|
||||
.replace('&', ampersand).replace('(', left_peren).replace(')', right_peren).replace('|', pipe)
|
||||
+ space + self.word
|
||||
.replace('&', ampersand).replace('(', left_peren).replace(')', right_peren).replace('|', pipe) + space + self.word
|
||||
for dork in self.dorks)
|
||||
|
||||
def googledork(self):
|
||||
|
|
|
@ -21,7 +21,7 @@ def search_hostnamesfromcerts(self):
|
|||
for hostnameitem in hostnamelist:
|
||||
hostitems = hostnameitem.next_sibling
|
||||
hostnames = str(hostitems)
|
||||
hostnamesclean = re.sub('[ \'\[\]]', '', hostnames)
|
||||
hostnamesclean = re.sub(r'[ \'\[\]]', '', hostnames)
|
||||
hostnamesclean = re.sub(r'\.\.\.', r'', hostnamesclean)
|
||||
self.hostnamesfromcerts.extend(hostnamesclean.split(','))
|
||||
self.hostnamesfromcerts = list(filter(None, self.hostnamesfromcerts))
|
||||
|
|
Loading…
Reference in a new issue