Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions core/zap.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def zap(input_url, archive, domain, host, internal, robots, proxies):
internal.add(url)
# Makes request to robots.txt
response = requests.get(input_url + '/robots.txt',
verify=False,
proxies=random.choice(proxies)).text
# Making sure robots.txt isn't some fancy 404 page
if '<body' not in response:
Expand All @@ -43,6 +44,7 @@ def zap(input_url, archive, domain, host, internal, robots, proxies):
print('%s URLs retrieved from robots.txt: %s' % (good, len(robots)))
# Makes request to sitemap.xml
response = requests.get(input_url + '/sitemap.xml',
verify=False,
proxies=random.choice(proxies)).text
# Making sure robots.txt isn't some fancy 404 page
if '<body' not in response:
Expand Down
2 changes: 1 addition & 1 deletion photon.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
main_url = main_inp
else:
try:
requests.get('https://' + main_inp, proxies=random.choice(proxies))
requests.get('https://' + main_inp, proxies=random.choice(proxies), verify=False)
main_url = 'https://' + main_inp
except:
main_url = 'http://' + main_inp
Expand Down