From 67a61e8340f52b915442bf231edc35233e6539f2 Mon Sep 17 00:00:00 2001 From: javaongsan Date: Wed, 1 Dec 2021 13:43:32 +0800 Subject: [PATCH] fix error when scanning for joomla plugins --- cmsmap/lib/jooscan.py | 2 +- cmsmap/lib/threadscanner.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmsmap/lib/jooscan.py b/cmsmap/lib/jooscan.py index 694348a..e17320d 100644 --- a/cmsmap/lib/jooscan.py +++ b/cmsmap/lib/jooscan.py @@ -18,7 +18,7 @@ class JooScan: def __init__(self): self.url = None self.usernames = [] - self.pluginPath = "?option=" + self.pluginPath = "/?option=" self.pluginsFound = [] self.notValidLen = [] self.notExistingCode = 404 diff --git a/cmsmap/lib/threadscanner.py b/cmsmap/lib/threadscanner.py index 5863c98..ff079eb 100644 --- a/cmsmap/lib/threadscanner.py +++ b/cmsmap/lib/threadscanner.py @@ -26,7 +26,9 @@ def __init__(self, url, pluginPath, pluginPathEnd, pluginsFound, notExistingCode def run(self): while True: # Get plugin from plugin queue - plugin = self.q.get() + plugin = urllib.parse.quote(self.q.get()) + + requester.request(self.url + self.pluginPath + plugin + self.pluginPathEnd, data=None) if requester.status_code == 200 and len(requester.htmltext) not in self.notValidLen: self.pluginsFound.append(plugin)