mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
code refactoring regarding standard output suppression and some threading issues
This commit is contained in:
@@ -427,7 +427,9 @@ def filePathToString(filePath):
|
||||
return strRepl
|
||||
|
||||
def dataToStdout(data, forceOutput=False):
|
||||
if forceOutput or conf.verbose > 0:
|
||||
if (forceOutput or conf.verbose > 0)\
|
||||
and not ('threadException' in kb and kb.threadException)\
|
||||
and not ('disableStdOut' in kb and kb.disableStdOut):
|
||||
try:
|
||||
sys.stdout.write(data)
|
||||
sys.stdout.flush()
|
||||
|
||||
Reference in New Issue
Block a user