Minor syntax adjustment for web backdoor functionality

This commit is contained in:
Bernardo Damele
2009-04-28 21:51:22 +00:00
parent 58f3eee390
commit 57b8bb4c8e
2 changed files with 4 additions and 9 deletions

View File

@@ -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/"