mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
Minor layout adjustment
This commit is contained in:
parent
2aadc5c939
commit
be81c20298
|
@ -183,6 +183,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
if conf.threadContinue:
|
||||
charStart = time.time()
|
||||
val = getChar(curidx)
|
||||
|
||||
if val is None:
|
||||
raise sqlmapValueException, "failed to get character at index %d (expected %d total)" % (curidx, length)
|
||||
else:
|
||||
|
@ -196,13 +197,18 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
elif conf.verbose >= 1:
|
||||
startCharIndex = 0
|
||||
endCharIndex = 0
|
||||
|
||||
for i in xrange(length):
|
||||
if value[i] is not None:
|
||||
endCharIndex = max(endCharIndex, i)
|
||||
|
||||
output = ''
|
||||
|
||||
if endCharIndex > conf.progressWidth:
|
||||
startCharIndex = endCharIndex - conf.progressWidth
|
||||
|
||||
count = 0
|
||||
|
||||
for i in xrange(startCharIndex, endCharIndex):
|
||||
output += '_' if value[i] is None else value[i]
|
||||
|
||||
|
@ -224,6 +230,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
iolock.release()
|
||||
|
||||
except (sqlmapConnectionException, sqlmapValueException), errMsg:
|
||||
print
|
||||
conf.threadException = True
|
||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
||||
|
||||
|
@ -241,6 +248,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
raise sqlmapThreadException, "user aborted"
|
||||
|
||||
except:
|
||||
print
|
||||
conf.threadException = True
|
||||
errMsg = unhandledException()
|
||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
||||
|
|
Loading…
Reference in New Issue
Block a user