mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
1f6ce265b9
commit
b481c0352f
|
@ -734,7 +734,7 @@ def dataToStdout(data, forceOutput=False):
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
if kb.get("multiThreadMode"):
|
if kb.get("multiThreadMode"):
|
||||||
logging._releaseLock()
|
logging._releaseLock()
|
||||||
setFormatterPrependFlag(len(data) == 1 and data != '\n')
|
setFormatterPrependFlag(len(data) == 1 and data != '\n' or len(data) > 2 and data[0] == '\r' and data[-1] != '\n')
|
||||||
|
|
||||||
def dataToSessionFile(data):
|
def dataToSessionFile(data):
|
||||||
if not conf.sessionFile or kb.suppressSession:
|
if not conf.sessionFile or kb.suppressSession:
|
||||||
|
|
|
@ -137,7 +137,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
dataToStdout("[%s] [INFO] retrieved: %s" % (time.strftime("%X"), "_" * min(length, conf.progressWidth)))
|
dataToStdout("[%s] [INFO] retrieved: %s" % (time.strftime("%X"), "_" * min(length, conf.progressWidth)))
|
||||||
dataToStdout("\r[%s] [INFO] retrieved: " % time.strftime("%X"))
|
dataToStdout("\r[%s] [INFO] retrieved: " % time.strftime("%X"))
|
||||||
else:
|
else:
|
||||||
dataToStdout("[%s] [INFO] retrieved: " % time.strftime("%X"))
|
dataToStdout("\r[%s] [INFO] retrieved: " % time.strftime("%X"))
|
||||||
|
|
||||||
hintlock = threading.Lock()
|
hintlock = threading.Lock()
|
||||||
|
|
||||||
|
@ -320,8 +320,6 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
progress.update(index)
|
progress.update(index)
|
||||||
progress.draw(eta)
|
progress.draw(eta)
|
||||||
|
|
||||||
setFormatterPrependFlag(True)
|
|
||||||
|
|
||||||
# Go multi-threading (--threads > 1)
|
# Go multi-threading (--threads > 1)
|
||||||
if conf.threads > 1 and isinstance(length, int) and length > 1:
|
if conf.threads > 1 and isinstance(length, int) and length > 1:
|
||||||
value = []
|
value = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user