mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-01 02:13:14 +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:
|
if conf.threadContinue:
|
||||||
charStart = time.time()
|
charStart = time.time()
|
||||||
val = getChar(curidx)
|
val = getChar(curidx)
|
||||||
|
|
||||||
if val is None:
|
if val is None:
|
||||||
raise sqlmapValueException, "failed to get character at index %d (expected %d total)" % (curidx, length)
|
raise sqlmapValueException, "failed to get character at index %d (expected %d total)" % (curidx, length)
|
||||||
else:
|
else:
|
||||||
|
@ -196,13 +197,18 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
elif conf.verbose >= 1:
|
elif conf.verbose >= 1:
|
||||||
startCharIndex = 0
|
startCharIndex = 0
|
||||||
endCharIndex = 0
|
endCharIndex = 0
|
||||||
|
|
||||||
for i in xrange(length):
|
for i in xrange(length):
|
||||||
if value[i] is not None:
|
if value[i] is not None:
|
||||||
endCharIndex = max(endCharIndex, i)
|
endCharIndex = max(endCharIndex, i)
|
||||||
|
|
||||||
output = ''
|
output = ''
|
||||||
|
|
||||||
if endCharIndex > conf.progressWidth:
|
if endCharIndex > conf.progressWidth:
|
||||||
startCharIndex = endCharIndex - conf.progressWidth
|
startCharIndex = endCharIndex - conf.progressWidth
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
for i in xrange(startCharIndex, endCharIndex):
|
for i in xrange(startCharIndex, endCharIndex):
|
||||||
output += '_' if value[i] is None else value[i]
|
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()
|
iolock.release()
|
||||||
|
|
||||||
except (sqlmapConnectionException, sqlmapValueException), errMsg:
|
except (sqlmapConnectionException, sqlmapValueException), errMsg:
|
||||||
|
print
|
||||||
conf.threadException = True
|
conf.threadException = True
|
||||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
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"
|
raise sqlmapThreadException, "user aborted"
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
print
|
||||||
conf.threadException = True
|
conf.threadException = True
|
||||||
errMsg = unhandledException()
|
errMsg = unhandledException()
|
||||||
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
logger.error("thread %d: %s" % (numThread + 1, errMsg))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user