mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Almost done with web backdoor functionality
This commit is contained in:
parent
16b4530bbe
commit
1d7de719b9
4 changed files with 69 additions and 76 deletions
|
|
@ -225,6 +225,7 @@ def getHtmlErrorFp():
|
|||
|
||||
def getDocRoot():
|
||||
docRoot = None
|
||||
pagePath = os.path.dirname(conf.path)
|
||||
|
||||
if kb.os == "Windows":
|
||||
defaultDocRoot = "C:\\Inetput\\wwwroot\\"
|
||||
|
|
@ -241,8 +242,8 @@ def getDocRoot():
|
|||
|
||||
absFilePath = os.path.normpath(absFilePath)
|
||||
|
||||
if os.path.dirname(conf.path) in absFilePath:
|
||||
index = absFilePath.index(conf.path)
|
||||
if pagePath in absFilePath:
|
||||
index = absFilePath.index(pagePath)
|
||||
docRoot = absFilePath[:index]
|
||||
|
||||
if absFilePathWin:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue