diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 7d0d4b746..c1bab44e3 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -534,12 +534,16 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None elif partialValue: hashDBWrite(expression, "%s%s" % (PARTIAL_VALUE_MARKER, partialValue)) - if conf.verbose in (1, 2) or showEta: - dataToStdout("\n") + if conf.hexConvert: + infoMsg = "\r[%s] [INFO] retrieved: %s %s\n" % (time.strftime("%X"), filterControlChars(finalValue), " " * len(finalValue)) + dataToStdout(infoMsg) + else: + if conf.verbose in (1, 2) or showEta: + dataToStdout("\n") - if ( conf.verbose in ( 1, 2 ) and showEta ) or conf.verbose >= 3: - infoMsg = "retrieved: %s" % filterControlChars(finalValue) - logger.info(infoMsg) + if ( conf.verbose in ( 1, 2 ) and showEta ) or conf.verbose >= 3: + infoMsg = "retrieved: %s" % filterControlChars(finalValue) + logger.info(infoMsg) if kb.threadException: raise sqlmapThreadException, "something unexpected happened inside the threads"