mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
greater flexibility for --batch when default is None
This commit is contained in:
@@ -679,11 +679,13 @@ def readInput(message, default=None):
|
||||
elif message[-1] == ']':
|
||||
message += " "
|
||||
|
||||
if conf.batch and default is not None:
|
||||
if conf.batch:
|
||||
if isinstance(default, (list, tuple, set)):
|
||||
options = ",".join([getUnicode(opt, UNICODE_ENCODING) for opt in default])
|
||||
else:
|
||||
elif default:
|
||||
options = getUnicode(default, UNICODE_ENCODING)
|
||||
else:
|
||||
options = unicode()
|
||||
|
||||
infoMsg = "%s%s" % (message, options)
|
||||
logger.info(infoMsg)
|
||||
|
||||
Reference in New Issue
Block a user