mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor tweak
This commit is contained in:
parent
9902018cab
commit
e10bb42597
3 changed files with 5 additions and 5 deletions
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from lib.core.revision import getRevisionNumber
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.0.9.20"
|
||||
VERSION = "1.0.9.21"
|
||||
REVISION = getRevisionNumber()
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
length = None
|
||||
|
||||
showEta = conf.eta and isinstance(length, int)
|
||||
numThreads = min(conf.threads, length)
|
||||
numThreads = min(conf.threads, length) or 1
|
||||
|
||||
if showEta:
|
||||
progress = ProgressBar(maxValue=length)
|
||||
|
|
@ -279,7 +279,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
finally:
|
||||
firstCheck = True
|
||||
|
||||
elif not lastCheck:
|
||||
elif not lastCheck and numThreads == 1: # not usable in multi-threading environment
|
||||
if charTbl[(len(charTbl) >> 1)] < ord(' '):
|
||||
try:
|
||||
# favorize last char check if current value inclines toward 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue