Incredibly fast crawler designed for OSINT.
Rename xmlParser to xml_parser
ConnorSkees6380401c83cc
diff --git a/core/utils.py b/core/utils.pyindex b131207..cc6580b 100644--- a/core/utils.py+++ b/core/utils.py@@ -100,7 +100,7 @@ def entropy(string):entropy = entropy - result * math.log(result, 2)return entropy-def xmlParser(response):+def xml_parser(response):"""Extract links from .xml files."""# Regex for extracting URLsreturn re.findall(r'<loc>(.*?)</loc>', response)diff --git a/core/zap.py b/core/zap.pyindex ed5bf34..3694011 100644--- a/core/zap.py+++ b/core/zap.py@@ -1,6 +1,6 @@import reimport requests-from core.utils import verb, xmlParser+from core.utils import verb, xml_parserfrom core.colors import run, goodfrom plugins.wayback import time_machine@@ -41,7 +41,7 @@ def zap(input_url, archive, domain, host, internal, robots):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)+ matches = xml_parser(response)if matches: # if there are any matchesprint('%s URLs retrieved from sitemap.xml: %s' % (good, len(matches)))