Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b472d98

Browse files
committed
another consistency fix to readInput()
1 parent 32c8c67 commit b472d98

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,7 @@ def readInput(message, default=None, checkBatch=True):
853853
else:
854854
options = unicode()
855855

856-
infoMsg = "%s%s" % (getUnicode(message), options)
857-
logger.info(infoMsg)
856+
dataToStdout("\r%s%s" % (getUnicode(message), options), forceOutput=True, bold=True)
858857

859858
debugMsg = "used the default behaviour, running in batch mode"
860859
logger.debug(debugMsg)
@@ -864,13 +863,15 @@ def readInput(message, default=None, checkBatch=True):
864863
logging._acquireLock()
865864
dataToStdout("\r%s" % message, forceOutput=True, bold=True)
866865
kb.prependFlag = False
866+
867867
try:
868868
retVal = raw_input() or default
869869
retVal = getUnicode(retVal, system=True) if retVal else retVal
870870
except:
871871
time.sleep(0.05) # Reference: http://www.gossamer-threads.com/lists/python/python/781893
872872
kb.prependFlag = True
873873
raise SqlmapUserQuitException
874+
874875
finally:
875876
logging._releaseLock()
876877

0 commit comments

Comments
 (0)