mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-26 01:19:04 +00:00
code refactoring regarding standard output suppression and some threading issues
This commit is contained in:
@@ -288,7 +288,7 @@ class Connect:
|
||||
|
||||
if silent or (ignoreTimeout and "timeout" in tbMsg):
|
||||
return None, None
|
||||
elif kb.retriesCount < conf.retries and not conf.threadException and not conf.scriptKiddie:
|
||||
elif kb.retriesCount < conf.retries and not kb.threadException and not conf.scriptKiddie:
|
||||
kb.retriesCount += 1
|
||||
|
||||
warnMsg += ", sqlmap is going to retry the request"
|
||||
|
||||
@@ -390,8 +390,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
||||
"""
|
||||
|
||||
if suppressOutput:
|
||||
pushValue(conf.verbose)
|
||||
conf.verbose = 0
|
||||
kb.disableStdOut = True
|
||||
|
||||
try:
|
||||
if conf.direct:
|
||||
@@ -467,7 +466,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
||||
|
||||
finally:
|
||||
if suppressOutput:
|
||||
conf.verbose = popValue()
|
||||
kb.disableStdOut = False
|
||||
|
||||
if value and expected == EXPECTED.BOOL:
|
||||
if isinstance(value, basestring):
|
||||
|
||||
Reference in New Issue
Block a user