mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor syntax adjustment for web backdoor functionality
This commit is contained in:
parent
58f3eee390
commit
57b8bb4c8e
2 changed files with 4 additions and 9 deletions
|
|
@ -228,7 +228,7 @@ def getDocRoot():
|
|||
pagePath = os.path.dirname(conf.path)
|
||||
|
||||
if kb.os == "Windows":
|
||||
defaultDocRoot = "C:\\Inetput\\wwwroot\\"
|
||||
defaultDocRoot = "C:/Inetpub/wwwroot/"
|
||||
else:
|
||||
defaultDocRoot = "/var/www/"
|
||||
|
||||
|
|
@ -247,7 +247,7 @@ def getDocRoot():
|
|||
docRoot = absFilePath[:index]
|
||||
|
||||
if absFilePathWin:
|
||||
docRoot = "C:\\%s" % docRoot.replace("/", "\\")
|
||||
docRoot = "C:/%s" % docRoot.replace("\\", "/")
|
||||
|
||||
break
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ def getDirs():
|
|||
directories = set()
|
||||
|
||||
if kb.os == "Windows":
|
||||
defaultDir = "C:\\Inetput\\wwwroot\\test\\"
|
||||
defaultDir = "C:/Inetpub/wwwroot/test/"
|
||||
else:
|
||||
defaultDir = "/var/www/test/"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue