mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Patch related to the #1403
This commit is contained in:
parent
c05c0ff435
commit
c4f9e66a6f
|
@ -909,14 +909,15 @@ def readInput(message, default=None, checkBatch=True):
|
||||||
answer = item.split('=')[1] if len(item.split('=')) > 1 else None
|
answer = item.split('=')[1] if len(item.split('=')) > 1 else None
|
||||||
if answer and question.lower() in message.lower():
|
if answer and question.lower() in message.lower():
|
||||||
retVal = getUnicode(answer, UNICODE_ENCODING)
|
retVal = getUnicode(answer, UNICODE_ENCODING)
|
||||||
|
elif answer is None and retVal:
|
||||||
|
retVal = "%s,%s" % (retVal, getUnicode(item, UNICODE_ENCODING))
|
||||||
|
|
||||||
infoMsg = "%s%s" % (message, retVal)
|
if retVal:
|
||||||
logger.info(infoMsg)
|
infoMsg = "%s%s" % (message, retVal)
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
||||||
debugMsg = "used the given answer"
|
debugMsg = "used the given answer"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
break
|
|
||||||
|
|
||||||
if retVal is None:
|
if retVal is None:
|
||||||
if checkBatch and conf.get("batch"):
|
if checkBatch and conf.get("batch"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user