Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions SPartan.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,6 @@ def urlProcessor(self, url):
errorBound = 50
fakeRespSize = 0
respSize = 0

if authed:
if cookie is not None:
fakeResp = requests.get(fakeUrl, cookies=cookie, verify=ignore_ssl,headers=headers)
Expand Down Expand Up @@ -729,6 +728,11 @@ def banner():
else:
cookie = None

global ignore_ssl
ignore_ssl = False
if args.ignore_ssl:
ignore_ssl = True

global authed
if args.login:
authenticate(args.url, args.login, None)
Expand All @@ -743,11 +747,6 @@ def banner():
else:
print 'Verbosity is set to LOW. SPartan will only print available resources. Use the -v flag to print all other resources found.'

global ignore_ssl
ignore_ssl = False
if args.ignore_ssl:
ignore_ssl = True

url = args.url.strip('/')
fileName = fileNamer(url)

Expand Down