Incredibly fast crawler designed for OSINT.
Change inputUrl to snake case
ConnorSkees3d4f1e72d2d1
diff --git a/core/requester.py b/core/requester.pyindex 5d5c559..e2e178b 100644--- a/core/requester.py+++ b/core/requester.py@@ -79,4 +79,4 @@ def requester(url, main_url=None, delay=0, cook={}, headers={}, timeout=10, host[photopea, normal, facebook, pixlr, code_beautify])(url)return response or 'dummy'else:- return normal(url)\ No newline at end of file+ return normal(url)diff --git a/core/zap.py b/core/zap.pyindex 5363a65..1b8670d 100644--- a/core/zap.py+++ b/core/zap.py@@ -5,7 +5,7 @@ from core.utils import verb, xmlParserfrom core.colors import run, goodfrom plugins.wayback import time_machine-def zap(inputUrl, archive, domain, host, internal, robots):+def zap(input_url, archive, domain, host, internal, robots):"""Extract links from robots.txt and sitemap.xml."""if archive:from plugins.wayback import time_machine@@ -20,7 +20,7 @@ def zap(inputUrl, archive, domain, host, internal, robots):verb('Internal page', url)internal.add(url)# Makes request to robots.txt- response = requests.get(inputUrl + '/robots.txt').text+ response = requests.get(input_url + '/robots.txt').text# Making sure robots.txt isn't some fancy 404 pageif '<body' not in response:# If you know it, you know it@@ -33,14 +33,14 @@ def zap(inputUrl, archive, domain, host, internal, robots):match = ''.join(match)# If the URL doesn't use a wildcardif '*' not in match:- url = inputUrl + match+ url = input_url + match# Add the URL to internal list for crawlinginternal.add(url)# Add the URL to robots listrobots.add(url)print('%s URLs retrieved from robots.txt: %s' % (good, len(robots)))# Makes request to sitemap.xml- response = requests.get(inputUrl + '/sitemap.xml').text+ response = requests.get(input_url + '/sitemap.xml').text# Making sure robots.txt isn't some fancy 404 pageif '<body' not in response:matches = xmlParser(response)@@ -51,4 +51,4 @@ def zap(inputUrl, archive, domain, host, internal, robots):verb('Internal page', match)# Cleaning up the URL and adding it to the internal list for# crawling- internal.add(match)\ No newline at end of file+ internal.add(match)