mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Fixes #5411
This commit is contained in:
parent
cf5e2aa7ef
commit
290a8e7119
|
@ -4940,6 +4940,12 @@ def decodeDbmsHexValue(value, raw=False):
|
||||||
|
|
||||||
>>> decodeDbmsHexValue('3132332031') == u'123 1'
|
>>> decodeDbmsHexValue('3132332031') == u'123 1'
|
||||||
True
|
True
|
||||||
|
>>> decodeDbmsHexValue('31003200330020003100') == u'123 1'
|
||||||
|
True
|
||||||
|
>>> decodeDbmsHexValue('00310032003300200031') == u'123 1'
|
||||||
|
True
|
||||||
|
>>> decodeDbmsHexValue('0x31003200330020003100') == u'123 1'
|
||||||
|
True
|
||||||
>>> decodeDbmsHexValue('313233203') == u'123 ?'
|
>>> decodeDbmsHexValue('313233203') == u'123 ?'
|
||||||
True
|
True
|
||||||
>>> decodeDbmsHexValue(['0x31', '0x32']) == [u'1', u'2']
|
>>> decodeDbmsHexValue(['0x31', '0x32']) == [u'1', u'2']
|
||||||
|
@ -4978,6 +4984,9 @@ def decodeDbmsHexValue(value, raw=False):
|
||||||
if not isinstance(retVal, six.text_type):
|
if not isinstance(retVal, six.text_type):
|
||||||
retVal = getUnicode(retVal, conf.encoding or UNICODE_ENCODING)
|
retVal = getUnicode(retVal, conf.encoding or UNICODE_ENCODING)
|
||||||
|
|
||||||
|
if u"\x00" in retVal:
|
||||||
|
retVal = retVal.replace(u"\x00", u"")
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -20,7 +20,7 @@ from thirdparty import six
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.7.5.1"
|
VERSION = "1.7.5.2"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user