mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
bug fix when using inference and kb.pageEncoding is None (like in binary cases)
This commit is contained in:
@@ -2397,7 +2397,7 @@ def decodeIntToUnicode(value):
|
|||||||
Decodes inferenced integer value with usage of current page encoding
|
Decodes inferenced integer value with usage of current page encoding
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return struct.pack('B' if value<256 else '>H', value).decode(kb.pageEncoding)
|
return struct.pack('B' if value<256 else '>H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
||||||
except:
|
except:
|
||||||
return INFERENCE_UNKNOWN_CHAR
|
return INFERENCE_UNKNOWN_CHAR
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user