mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor fix for Python <= 2.5.2 (os.path.normpath function)
This commit is contained in:
parent
c5d20b8a86
commit
a727427299
|
@ -183,6 +183,7 @@ class Takeover(Abstraction, DEP, Metasploit, Registry):
|
||||||
requestDir = os.path.normpath(directory.replace(kb.docRoot, "/").replace("\\", "/"))
|
requestDir = os.path.normpath(directory.replace(kb.docRoot, "/").replace("\\", "/"))
|
||||||
baseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, requestDir)
|
baseUrl = "%s://%s:%d%s" % (conf.scheme, conf.hostname, conf.port, requestDir)
|
||||||
uploaderUrl = "%s/%s" % (baseUrl, uploaderName)
|
uploaderUrl = "%s/%s" % (baseUrl, uploaderName)
|
||||||
|
uploaderUrl = uploaderUrl.replace("./", "/")
|
||||||
uplPage, _ = Request.getPage(url=uploaderUrl, direct=True)
|
uplPage, _ = Request.getPage(url=uploaderUrl, direct=True)
|
||||||
|
|
||||||
if "sqlmap backdoor uploader" not in uplPage:
|
if "sqlmap backdoor uploader" not in uplPage:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user