mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Implementation for an Issue #515
This commit is contained in:
parent
e0bfb0503c
commit
9e975210ac
|
@ -688,12 +688,22 @@ def getDocRoot():
|
|||
for suffix in BRUTE_DOC_ROOT_SUFFIXES:
|
||||
for target in targets:
|
||||
item = "%s/%s" % (prefix, suffix)
|
||||
item = item.replace(BRUTE_DOC_ROOT_TARGET_MARK, target).replace("//", "/")
|
||||
item = item.replace(BRUTE_DOC_ROOT_TARGET_MARK, target).replace("//", '/').rstrip('/')
|
||||
docRoot.append(item)
|
||||
|
||||
if BRUTE_DOC_ROOT_TARGET_MARK not in prefix:
|
||||
break
|
||||
|
||||
infoMsg = "using common document root locations: %s" % ','.join(docRoot)
|
||||
logger.info(infoMsg)
|
||||
|
||||
msg = "use additional custom "
|
||||
msg += "document root locations [Enter for None]: "
|
||||
answer = readInput(msg)
|
||||
|
||||
if answer:
|
||||
docRoot.extend(answer.split(','))
|
||||
|
||||
else:
|
||||
docRoot = defaultDocRoot
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user