mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
bug fix (when user manually sets web root, that same directory should be used as one of potentionaly default dirs)
This commit is contained in:
parent
bec152609a
commit
d757e4ae1c
|
@ -369,6 +369,9 @@ def getDirs(webApi=None):
|
|||
else:
|
||||
defaultDirs = ["/var/www/"]
|
||||
|
||||
if kb.docRoot and kb.docRoot not in defaultDirs:
|
||||
defaultDirs.append(kb.docRoot)
|
||||
|
||||
if kb.absFilePaths:
|
||||
infoMsg = "retrieved web server full paths: "
|
||||
infoMsg += "'%s'" % ", ".join(path for path in kb.absFilePaths)
|
||||
|
|
Loading…
Reference in New Issue
Block a user