Skip to content

Commit 70665c5

Browse files
committed
Improvement regarding #5171
1 parent 111620e commit 70665c5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,6 +2045,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
20452045
kb.delayCandidates = TIME_DELAY_CANDIDATES * [0]
20462046
kb.dep = None
20472047
kb.disableHtmlDecoding = False
2048+
kb.disableShiftTable = False
20482049
kb.dnsMode = False
20492050
kb.dnsTest = None
20502051
kb.docRoot = None

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.9.0"
23+
VERSION = "1.6.9.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,11 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
274274

275275
originalTbl = type(charTbl)(charTbl)
276276

277-
if continuousOrder and shiftTable is None:
277+
if kb.disableShiftTable:
278+
shiftTable = None
279+
elif continuousOrder and shiftTable is None:
278280
# Used for gradual expanding into unicode charspace
279-
shiftTable = [2, 2, 3, 3, 5, 4]
281+
shiftTable = [2, 2, 3, 3, 3]
280282

281283
if "'%s'" % CHAR_INFERENCE_MARK in payload:
282284
for char in ('\n', '\r'):
@@ -358,6 +360,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
358360
kb.responseTimePayload = None
359361

360362
result = Request.queryPage(forgedPayload, timeBasedCompare=timeBasedCompare, raise404=False)
363+
361364
incrementCounter(getTechnique())
362365

363366
if not timeBasedCompare and getTechniqueData() is not None:
@@ -405,6 +408,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
405408
maxChar = maxValue = charTbl[-1]
406409
minValue = charTbl[0]
407410
else:
411+
kb.disableShiftTable = True
408412
return None
409413
else:
410414
retVal = minValue + 1

0 commit comments

Comments
 (0)