File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4551,6 +4551,8 @@ def decodeDbmsHexValue(value, raw=False):
45514551 True
45524552 >>> decodeDbmsHexValue(['0x31', '0x32']) == [u'1', u'2']
45534553 True
4554+ >>> decodeDbmsHexValue('5.1.41') == u'5.1.41'
4555+ True
45544556 """
45554557
45564558 retVal = value
@@ -4559,7 +4561,7 @@ def _(value):
45594561 retVal = value
45604562 if value and isinstance (value , six .string_types ):
45614563 if len (value ) % 2 != 0 :
4562- retVal = b"%s?" % decodeHex (value [:- 1 ]) if len (value ) > 1 else value
4564+ retVal = ( decodeHex (value [:- 1 ]) + b'?' ) if len (value ) > 1 else value
45634565 singleTimeWarnMessage ("there was a problem decoding value '%s' from expected hexadecimal form" % value )
45644566 else :
45654567 retVal = decodeHex (value )
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.5.95 "
21+ VERSION = "1.3.5.96 "
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 )
Original file line number Diff line number Diff line change @@ -154,9 +154,9 @@ def parse(cls, raw):
154154 stream = io .BytesIO (raw )
155155 first_line = stream .readline ()
156156 parts = cls .extract_status .search (first_line )
157- status_line = b "HTTP/1.0 %s %s" % (parts .group (1 ), parts .group (2 ))
157+ status_line = "HTTP/1.0 %s %s" % (getText ( parts .group (1 )), getText ( parts .group (2 ) ))
158158 remain = stream .read ()
159- altered = status_line + b"\r \n " + remain
159+ altered = getBytes ( status_line ) + b"\r \n " + remain
160160 comment = first_line
161161
162162 response = _http_client .HTTPResponse (FakeSocket (altered ))
You can’t perform that action at this time.
0 commit comments