Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 094cfee

Browse files
committed
Couple of minor patches
1 parent 5bc9e2a commit 094cfee

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/har.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)