mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-11 11:13:44 +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):
|
for match in reobj.finditer(page):
|
||||||
absFilePath = match.group("result").strip()
|
absFilePath = match.group("result").strip()
|
||||||
page = page.replace(absFilePath, "")
|
page = page.replace(absFilePath, "")
|
||||||
|
if re.search("\A[A-Za-z]:", absFilePath):
|
||||||
|
absFilePath = absFilePath.replace("/", "\\")
|
||||||
if absFilePath not in kb.absFilePaths:
|
if absFilePath not in kb.absFilePaths:
|
||||||
dirname = directoryPath(absFilePath)
|
dirname = directoryPath(absFilePath)
|
||||||
kb.absFilePaths.add(dirname)
|
kb.absFilePaths.add(dirname)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user