Skip to content

Commit 290a8e7

Browse files
committed
Fixes #5411
1 parent cf5e2aa commit 290a8e7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/core/common.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4940,6 +4940,12 @@ def decodeDbmsHexValue(value, raw=False):
49404940
49414941
>>> decodeDbmsHexValue('3132332031') == u'123 1'
49424942
True
4943+
>>> decodeDbmsHexValue('31003200330020003100') == u'123 1'
4944+
True
4945+
>>> decodeDbmsHexValue('00310032003300200031') == u'123 1'
4946+
True
4947+
>>> decodeDbmsHexValue('0x31003200330020003100') == u'123 1'
4948+
True
49434949
>>> decodeDbmsHexValue('313233203') == u'123 ?'
49444950
True
49454951
>>> decodeDbmsHexValue(['0x31', '0x32']) == [u'1', u'2']
@@ -4978,6 +4984,9 @@ def _(value):
49784984
if not isinstance(retVal, six.text_type):
49794985
retVal = getUnicode(retVal, conf.encoding or UNICODE_ENCODING)
49804986

4987+
if u"\x00" in retVal:
4988+
retVal = retVal.replace(u"\x00", u"")
4989+
49814990
return retVal
49824991

49834992
try:

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.7.5.1"
23+
VERSION = "1.7.5.2"
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)

0 commit comments

Comments
 (0)