File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,8 +164,13 @@ def encodeHex(value, binary=True):
164164 True
165165 >>> encodeHex("123", binary=False)
166166 '313233'
167+ >>> encodeHex(b"123"[0]) == b"31"
168+ True
167169 """
168170
171+ if isinstance (value , int ):
172+ value = six .unichr (value )
173+
169174 if isinstance (value , six .text_type ):
170175 value = value .encode (UNICODE_ENCODING )
171176
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.7.5 "
21+ VERSION = "1.3.7.6 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_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