mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
code refactoring regarding standard output suppression and some threading issues
This commit is contained in:
parent
0e68248f60
commit
385e208f38
8 changed files with 27 additions and 18 deletions
|
|
@ -341,11 +341,11 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
|
||||
except (sqlmapConnectionException, sqlmapValueException), errMsg:
|
||||
print
|
||||
conf.threadException = True
|
||||
kb.threadException = True
|
||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
||||
|
||||
except KeyboardInterrupt:
|
||||
conf.threadException = True
|
||||
kb.threadException = True
|
||||
|
||||
print
|
||||
logger.debug("waiting for threads to finish")
|
||||
|
|
@ -359,7 +359,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
|
||||
except:
|
||||
print
|
||||
conf.threadException = True
|
||||
kb.threadException = True
|
||||
errMsg = unhandledException()
|
||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
||||
traceback.print_exc()
|
||||
|
|
@ -505,7 +505,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
if not partialValue:
|
||||
dataToSessionFile("]\n")
|
||||
|
||||
if conf.threadException:
|
||||
if kb.threadException:
|
||||
raise sqlmapThreadException, "something unexpected happened inside the threads"
|
||||
|
||||
return queriesCount[0], finalValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue