From a72742729940b77550c31d12ea3faee744eb6ab6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 6 May 2009 13:37:51 +0000 Subject: [PATCH] Minor fix for Python <= 2.5.2 (os.path.normpath function) --- plugins/generic/takeover.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/generic/takeover.py b/plugins/generic/takeover.py index 4473fbc2a..0287a7c18 100644 --- a/plugins/generic/takeover.py +++ b/plugins/generic/takeover.py @@ -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: