mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +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)
|
||||
|
||||
for absFilePath in kb.absFilePaths:
|
||||
directories.add(os.path.dirname(absFilePath))
|
||||
if absFilePath:
|
||||
directories.add(os.path.dirname(absFilePath))
|
||||
else:
|
||||
warnMsg = "unable to retrieve any web server path"
|
||||
logger.warn(warnMsg)
|
||||
|
@ -299,7 +300,8 @@ def getDirs():
|
|||
inputDirs = inputDirs.split(",")
|
||||
|
||||
for inputDir in inputDirs:
|
||||
directories.add(inputDir)
|
||||
if inputDir:
|
||||
directories.add(inputDir)
|
||||
else:
|
||||
directories.add(defaultDir)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user