mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
Update lib/core/common.py
Fixing wrong assumption in case of MySQL inference international character retrieval
This commit is contained in:
parent
aeda67e945
commit
50b846b5af
|
@ -2500,13 +2500,7 @@ def decodeIntToUnicode(value):
|
||||||
|
|
||||||
if isinstance(value, int):
|
if isinstance(value, int):
|
||||||
try:
|
try:
|
||||||
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
retVal = unichr(value)
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
|
||||||
retVal = getUnicode(struct.pack('B' if value < 256 else '<H', value))
|
|
||||||
elif value > 255:
|
|
||||||
retVal = unichr(value)
|
|
||||||
else:
|
|
||||||
retVal = getUnicode(chr(value))
|
|
||||||
except:
|
except:
|
||||||
retVal = INFERENCE_UNKNOWN_CHAR
|
retVal = INFERENCE_UNKNOWN_CHAR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user