Skip to content

Commit 7e6879e

Browse files
committed
Minor patch for #2272
1 parent ea96167 commit 7e6879e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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.enums import OS
2020

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

lib/techniques/blind/inference.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
9494
return 0, retVal
9595

9696
try:
97-
# Set kb.partRun in case "common prediction" feature (a.k.a. "good
98-
# samaritan") is used or the engine is called from the API
97+
# Set kb.partRun in case "common prediction" feature (a.k.a. "good samaritan") is used or the engine is called from the API
9998
if conf.predictOutput:
10099
kb.partRun = getPartRun()
101100
elif hasattr(conf, "api"):
@@ -107,8 +106,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
107106
firstChar = len(partialValue)
108107
elif "LENGTH(" in expression.upper() or "LEN(" in expression.upper():
109108
firstChar = 0
110-
elif dump and conf.firstChar is not None and (isinstance(conf.firstChar, int) or (isinstance(conf.firstChar, basestring) and conf.firstChar.isdigit())):
109+
elif (kb.fileReadMode or dump) and conf.firstChar is not None and (isinstance(conf.firstChar, int) or (isinstance(conf.firstChar, basestring) and conf.firstChar.isdigit())):
111110
firstChar = int(conf.firstChar) - 1
111+
if kb.fileReadMode:
112+
firstChar *= 2
112113
elif isinstance(firstChar, basestring) and firstChar.isdigit() or isinstance(firstChar, int):
113114
firstChar = int(firstChar) - 1
114115
else:

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
b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
77d181efc08bd6d3d97646e98f080b89 lib/core/settings.py
48+
7f7273907a344eddfae58c91a02171c4 lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
@@ -86,7 +86,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/takeover/__init__.py
8686
7d6cd7bdfc8f4bc4e8aed60c84cdf87f lib/takeover/udf.py
8787
d9bdcc17091374c53ad2eea7fd72a909 lib/takeover/web.py
8888
9af83a62de360184f1c14e69b8a95cfe lib/takeover/xp_cmdshell.py
89-
c066bd01bd02135841e4f6875644ebd2 lib/techniques/blind/inference.py
89+
0ad6fbd71649f736083c00e58de750b9 lib/techniques/blind/inference.py
9090
cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/blind/__init__.py
9191
cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/brute/__init__.py
9292
d36effffe64e63ef9b3be490f850e2cc lib/techniques/brute/use.py

0 commit comments

Comments
 (0)