Minor fix for Python <= 2.5.2 (os.path.normpath function)

This commit is contained in:
Bernardo Damele 2009-05-06 13:37:51 +00:00
parent c5d20b8a86
commit a727427299

View File

@ -183,6 +183,7 @@ class Takeover(Abstraction, DEP, Metasploit, Registry):
requestDir = os.path.normpath(directory.replace(kb.docRoot, "/").replace("\\", "/"))
baseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, requestDir)
uploaderUrl = "%s/%s" % (baseUrl, uploaderName)
uploaderUrl = uploaderUrl.replace("./", "/")
uplPage, _ = Request.getPage(url=uploaderUrl, direct=True)
if "sqlmap backdoor uploader" not in uplPage: