mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
Avoid to upload the web backdoor to unexisting empty-name directory
This commit is contained in:
parent
24a3a23159
commit
516fdb9356
|
@ -285,7 +285,8 @@ def getDirs():
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
for absFilePath in kb.absFilePaths:
|
for absFilePath in kb.absFilePaths:
|
||||||
directories.add(os.path.dirname(absFilePath))
|
if absFilePath:
|
||||||
|
directories.add(os.path.dirname(absFilePath))
|
||||||
else:
|
else:
|
||||||
warnMsg = "unable to retrieve any web server path"
|
warnMsg = "unable to retrieve any web server path"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
@ -299,7 +300,8 @@ def getDirs():
|
||||||
inputDirs = inputDirs.split(",")
|
inputDirs = inputDirs.split(",")
|
||||||
|
|
||||||
for inputDir in inputDirs:
|
for inputDir in inputDirs:
|
||||||
directories.add(inputDir)
|
if inputDir:
|
||||||
|
directories.add(inputDir)
|
||||||
else:
|
else:
|
||||||
directories.add(defaultDir)
|
directories.add(defaultDir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user