Skip to content

Commit 9a7d9a6

Browse files
committed
Couple of patches (related to previous commit)
1 parent b39a1ad commit 9a7d9a6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/core/convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def htmlUnescape(value):
7575
"""
7676
Returns (basic conversion) HTML unescaped value
7777
78-
>>> htmlUnescape('a<b')
79-
'a<b'
78+
>>> htmlUnescape('a&lt;b') == 'a<b'
79+
True
8080
"""
8181

8282
retVal = value
@@ -87,7 +87,7 @@ def htmlUnescape(value):
8787
retVal = retVal.replace(code, value)
8888

8989
try:
90-
retVal = getText(re.sub(r"&#x([^ ;]+);", lambda match: _unichr(int(match.group(1), 16)), retVal))
90+
retVal = re.sub(r"&#x([^ ;]+);", lambda match: _unichr(int(match.group(1), 16)), retVal)
9191
except ValueError:
9292
pass
9393

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.159"
21+
VERSION = "1.3.5.160"
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/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def attackDumpedTable():
668668
value = table[column]["values"][i]
669669

670670
if column in binary_fields and re.search(HASH_BINARY_COLUMNS_REGEX, column) is not None:
671-
value = encodeHex(value, binary=False)
671+
value = encodeHex(getBytes(value), binary=False)
672672

673673
if hashRecognition(value):
674674
found = True

0 commit comments

Comments
 (0)