Travis fixes/flake8 fixes

This commit is contained in:
Jay Townsend 2019-09-01 01:27:13 +01:00
parent ee5bf192ed
commit 4a7bfe86f3
4 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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'
]
)
)
],
)

View file

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

View file

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