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

Skip to content

Commit 63c2d20

Browse files
committed
Fixes #3953
1 parent aed137a commit 63c2d20

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

lib/core/common.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4700,18 +4700,19 @@ def _(value):
47004700
else:
47014701
retVal = decodeHex(value)
47024702

4703-
if not kb.binaryField and not raw:
4704-
if Backend.isDbms(DBMS.MSSQL) and value.startswith("0x"):
4705-
try:
4706-
retVal = retVal.decode("utf-16-le")
4707-
except UnicodeDecodeError:
4708-
pass
4703+
if not raw:
4704+
if not kb.binaryField:
4705+
if Backend.isDbms(DBMS.MSSQL) and value.startswith("0x"):
4706+
try:
4707+
retVal = retVal.decode("utf-16-le")
4708+
except UnicodeDecodeError:
4709+
pass
47094710

4710-
elif Backend.getIdentifiedDbms() in (DBMS.HSQLDB, DBMS.H2):
4711-
try:
4712-
retVal = retVal.decode("utf-16-be")
4713-
except UnicodeDecodeError:
4714-
pass
4711+
elif Backend.getIdentifiedDbms() in (DBMS.HSQLDB, DBMS.H2):
4712+
try:
4713+
retVal = retVal.decode("utf-16-be")
4714+
except UnicodeDecodeError:
4715+
pass
47154716

47164717
if not isinstance(retVal, six.text_type):
47174718
retVal = getUnicode(retVal, conf.encoding or UNICODE_ENCODING)

lib/core/settings.py

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

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

0 commit comments

Comments
 (0)