mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Preserve equals signs in answer values
This commit is contained in:
parent
8cac5fdab6
commit
4caeff9cf4
3 changed files with 8 additions and 5 deletions
|
|
@ -1147,8 +1147,11 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
|
|||
return conf.answers
|
||||
|
||||
for item in conf.answers.split(','):
|
||||
question = item.split('=')[0].strip()
|
||||
answer = item.split('=')[1] if len(item.split('=')) > 1 else None
|
||||
if '=' in item:
|
||||
question, answer = item.split('=', 1)
|
||||
question = question.strip()
|
||||
else:
|
||||
question, answer = item.strip(), None
|
||||
if answer and question.lower() in message.lower():
|
||||
retVal = getUnicode(answer, UNICODE_ENCODING)
|
||||
elif answer is None and retVal:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue