Agent: Use OperatingSystems.value for urllib.parse.quote

This commit is contained in:
Ilija Lazoroski 2022-06-24 10:51:58 +02:00
parent d59dd81f43
commit fb67586a4c
2 changed files with 2 additions and 2 deletions

View File

@ -57,6 +57,6 @@ class HTTPTools(object):
httpd.start()
lock.acquire()
return (
"http://%s:%s/%s" % (local_ip, local_port, urllib.parse.quote(host.os["type"])),
"http://%s:%s/%s" % (local_ip, local_port, urllib.parse.quote(host.os["type"].value)),
httpd,
)

View File

@ -62,7 +62,7 @@ class FileServHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
f.close()
def send_head(self):
if self.path != "/" + urllib.parse.quote(self.victim_os):
if self.path != "/" + urllib.parse.quote(self.victim_os.value):
self.send_error(500, "")
return None, 0, 0
try: