mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 06:01:29 +00:00
Minor update
This commit is contained in:
@@ -77,6 +77,7 @@ from lib.core.exception import sqlmapNoneDataException
|
|||||||
from lib.core.exception import sqlmapMissingDependence
|
from lib.core.exception import sqlmapMissingDependence
|
||||||
from lib.core.exception import sqlmapSilentQuitException
|
from lib.core.exception import sqlmapSilentQuitException
|
||||||
from lib.core.exception import sqlmapSyntaxException
|
from lib.core.exception import sqlmapSyntaxException
|
||||||
|
from lib.core.exception import sqlmapUserQuitException
|
||||||
from lib.core.log import FORMATTER
|
from lib.core.log import FORMATTER
|
||||||
from lib.core.log import LOGGER_HANDLER
|
from lib.core.log import LOGGER_HANDLER
|
||||||
from lib.core.optiondict import optDict
|
from lib.core.optiondict import optDict
|
||||||
@@ -781,8 +782,11 @@ def readInput(message, default=None, checkBatch=True):
|
|||||||
logging._acquireLock()
|
logging._acquireLock()
|
||||||
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
|
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
|
||||||
kb.prependFlag = False
|
kb.prependFlag = False
|
||||||
|
try:
|
||||||
data = raw_input() or default
|
data = raw_input() or default
|
||||||
#data = raw_input(message.encode(sys.stdout.encoding or UNICODE_ENCODING))
|
except:
|
||||||
|
raise sqlmapUserQuitException
|
||||||
|
finally:
|
||||||
logging._releaseLock()
|
logging._releaseLock()
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|||||||
Reference in New Issue
Block a user