Incredibly fast crawler designed for OSINT.
fix proxy in zap
oXis2408875e65b3
diff --git a/core/zap.py b/core/zap.pyindex 6440f97..d300374 100644--- a/core/zap.py+++ b/core/zap.py@@ -6,7 +6,7 @@ from core.colors import run, goodfrom plugins.wayback import time_machine-def zap(input_url, archive, domain, host, internal, robots):+def zap(input_url, archive, domain, host, internal, robots, proxies):"""Extract links from robots.txt and sitemap.xml."""if archive:print('%s Fetching URLs from archive.org' % run)@@ -20,7 +20,7 @@ def zap(input_url, archive, domain, host, internal, robots):verb('Internal page', url)internal.add(url)# Makes request to robots.txt- response = requests.get(input_url + '/robots.txt').text+ response = requests.get(input_url + '/robots.txt', proxies=proxies).text# Making sure robots.txt isn't some fancy 404 pageif '<body' not in response:# If you know it, you know it@@ -40,7 +40,7 @@ def zap(input_url, archive, domain, host, internal, robots):robots.add(url)print('%s URLs retrieved from robots.txt: %s' % (good, len(robots)))# Makes request to sitemap.xml- response = requests.get(input_url + '/sitemap.xml').text+ response = requests.get(input_url + '/sitemap.xml', proxies=proxies).text# Making sure robots.txt isn't some fancy 404 pageif '<body' not in response:matches = xml_parser(response)diff --git a/photon.py b/photon.pyindex f65a5b6..767d6b9 100644--- a/photon.py+++ b/photon.py@@ -176,7 +176,7 @@ if main_inp.startswith('http'):main_url = main_inpelse:try:- requests.get('https://' + main_inp)+ requests.get('https://' + main_inp, proxies=proxies)main_url = 'https://' + main_inpexcept:main_url = 'http://' + main_inp@@ -288,7 +288,7 @@ def jscanner(url):then = time.time()# Step 1. Extract urls from robots.txt & sitemap.xml-zap(main_url, args.archive, domain, host, internal, robots)+zap(main_url, args.archive, domain, host, internal, robots, proxies)# This is so the level 1 emails are parsed as wellinternal = set(remove_regex(internal, args.exclude))