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

Skip to content

Commit db2e34f

Browse files
committed
Minor update
1 parent 24e3b6a commit db2e34f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

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.5.9.6"
23+
VERSION = "1.5.9.7"
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,13 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
363363
if not timeBasedCompare and getTechniqueData() is not None:
364364
unexpectedCode |= threadData.lastCode not in (getTechniqueData().falseCode, getTechniqueData().trueCode)
365365
if unexpectedCode:
366-
warnMsg = "unexpected HTTP code '%s' detected. Will use (extra) validation step in similar cases" % threadData.lastCode
366+
if threadData.lastCode is not None:
367+
warnMsg = "unexpected HTTP code '%s' detected." % threadData.lastCode
368+
else:
369+
warnMsg = "unexpected response detected." % threadData.lastCode
370+
371+
warnMsg += " Will use (extra) validation step in similar cases"
372+
367373
singleTimeWarnMessage(warnMsg)
368374

369375
if result:

0 commit comments

Comments
 (0)