mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
Minor refactoring (Issue #411)
This commit is contained in:
parent
bdf72b0ffa
commit
6fbd902265
2 changed files with 8 additions and 1 deletions
|
|
@ -55,6 +55,7 @@ from lib.core.convert import utf8encode
|
|||
from lib.core.decorators import cachedmethod
|
||||
from lib.core.defaults import defaults
|
||||
from lib.core.dicts import DBMS_DICT
|
||||
from lib.core.dicts import DEFAULT_DOC_ROOTS
|
||||
from lib.core.dicts import DEPRECATED_OPTIONS
|
||||
from lib.core.dicts import SQL_STATEMENTS
|
||||
from lib.core.enums import ADJUST_TIME_DELAY
|
||||
|
|
@ -599,7 +600,7 @@ def getDocRoot():
|
|||
docRoot = None
|
||||
pagePath = directoryPath(conf.path)
|
||||
|
||||
defaultDocRoot = ("C:/xampp/htdocs/", "C:/Inetpub/wwwroot/") if Backend.isOs(OS.WINDOWS) else ("/var/www/",)
|
||||
defaultDocRoot = DEFAULT_DOC_ROOTS.get(Backend.getOs(), DEFAULT_DOC_ROOTS[OS.LINUX])
|
||||
|
||||
if kb.absFilePaths:
|
||||
for absFilePath in kb.absFilePaths:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue