Skip to content

Incredibly fast crawler designed for OSINT.

Rename xmlParser to xml_parser

ConnorSkees6380401c83cc
diff --git a/core/utils.py b/core/utils.py
index 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 URLs
return re.findall(r'<loc>(.*?)</loc>', response)
diff --git a/core/zap.py b/core/zap.py
index ed5bf34..3694011 100644
--- a/core/zap.py
+++ b/core/zap.py
@@ -1,6 +1,6 @@
import re
import requests
-from core.utils import verb, xmlParser
+from core.utils import verb, xml_parser
from core.colors import run, good
from 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 page
if '<body' not in response:
- matches = xmlParser(response)
+ matches = xml_parser(response)
if matches: # if there are any matches
print('%s URLs retrieved from sitemap.xml: %s' % (
good, len(matches)))