mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-21 03:03:50 +00:00
Some more refactoring
This commit is contained in:
parent
b9e2e8b74d
commit
8735a49f63
3 changed files with 7 additions and 7 deletions
|
|
@ -469,7 +469,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
currentCharIndex = threadData.shared.index[0]
|
||||
|
||||
if kb.threadContinue:
|
||||
charStart = time.time()
|
||||
start = time.time()
|
||||
val = getChar(currentCharIndex, asciiTbl, not(charsetType is None and conf.charset))
|
||||
if val is None:
|
||||
val = INFERENCE_UNKNOWN_CHAR
|
||||
|
|
@ -482,7 +482,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
|
||||
if kb.threadContinue:
|
||||
if showEta:
|
||||
progress.progress(time.time() - charStart, threadData.shared.index[0])
|
||||
progress.progress(calculateDeltaSeconds(start), threadData.shared.index[0])
|
||||
elif conf.verbose >= 1:
|
||||
startCharIndex = 0
|
||||
endCharIndex = 0
|
||||
|
|
@ -550,7 +550,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
|
||||
while True:
|
||||
index += 1
|
||||
charStart = time.time()
|
||||
start = time.time()
|
||||
|
||||
# Common prediction feature (a.k.a. "good samaritan")
|
||||
# NOTE: to be used only when multi-threading is not set for
|
||||
|
|
@ -575,7 +575,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
# Did we have luck?
|
||||
if result:
|
||||
if showEta:
|
||||
progress.progress(time.time() - charStart, len(commonValue))
|
||||
progress.progress(calculateDeltaSeconds(start), len(commonValue))
|
||||
elif conf.verbose in (1, 2) or conf.api:
|
||||
dataToStdout(filterControlChars(commonValue[index - 1:]))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue