mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
fix for cases where both posix and nt path versions of windows paths are in parsed web page
This commit is contained in:
parent
894b9f0f80
commit
8b0d31a6b7
|
@ -81,6 +81,8 @@ def parseResponse(page, headers):
|
|||
for match in reobj.finditer(page):
|
||||
absFilePath = match.group("result").strip()
|
||||
page = page.replace(absFilePath, "")
|
||||
if re.search("\A[A-Za-z]:", absFilePath):
|
||||
absFilePath = absFilePath.replace("/", "\\")
|
||||
if absFilePath not in kb.absFilePaths:
|
||||
dirname = directoryPath(absFilePath)
|
||||
kb.absFilePaths.add(dirname)
|
||||
|
|
Loading…
Reference in New Issue
Block a user