Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e10bb42

Browse files
committed
Minor tweak
1 parent 9902018 commit e10bb42

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.9.20"
22+
VERSION = "1.0.9.21"
2323
REVISION = getRevisionNumber()
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}

lib/techniques/blind/inference.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
144144
length = None
145145

146146
showEta = conf.eta and isinstance(length, int)
147-
numThreads = min(conf.threads, length)
147+
numThreads = min(conf.threads, length) or 1
148148

149149
if showEta:
150150
progress = ProgressBar(maxValue=length)
@@ -279,7 +279,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
279279
finally:
280280
firstCheck = True
281281

282-
elif not lastCheck:
282+
elif not lastCheck and numThreads == 1: # not usable in multi-threading environment
283283
if charTbl[(len(charTbl) >> 1)] < ord(' '):
284284
try:
285285
# favorize last char check if current value inclines toward 0

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
95276012feeed6d7d2dc6f22724c70cc lib/core/settings.py
48+
64150b622fb8fc638de6aa98bcee6ff5 lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
@@ -87,7 +87,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/takeover/__init__.py
8787
7d6cd7bdfc8f4bc4e8aed60c84cdf87f lib/takeover/udf.py
8888
f6e3084abd506925a8be3d1c0a6d058c lib/takeover/web.py
8989
9af83a62de360184f1c14e69b8a95cfe lib/takeover/xp_cmdshell.py
90-
f9fccc94cb9d5c15f84b5feb579ab0de lib/techniques/blind/inference.py
90+
03b8c2028e996c471e45308fa518d79a lib/techniques/blind/inference.py
9191
cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/blind/__init__.py
9292
cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/brute/__init__.py
9393
d36effffe64e63ef9b3be490f850e2cc lib/techniques/brute/use.py

0 commit comments

Comments
 (0)