Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmsmap/lib/threadscanner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env python3
import urllib, http.client, threading, time, socket
import urllib, http.client, threading, time, socket, urllib.parse

# Import Object
from .initialize import initializer
Expand All @@ -17,7 +17,7 @@ def __init__(self, url, pluginPath, pluginPathEnd, pluginsFound, notExistingCode
threading.Thread.__init__(self)
self.url = url
self.q = q
self.pluginPath = pluginPath
self.pluginPath = urllib.parse.quote(pluginPath)
self.pluginsFound = pluginsFound
self.pluginPathEnd = pluginPathEnd
self.notExistingCode = notExistingCode
Expand All @@ -26,7 +26,7 @@ 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)
Expand Down