File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments