mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor update regarding support for Unicode characters in Oracle
This commit is contained in:
parent
704488a4e4
commit
f4e7bf1d51
|
@ -2682,7 +2682,11 @@ 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 unichr(value)
|
# http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
|
||||||
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
|
||||||
|
return struct.pack('B' if value<256 else '<H', value).decode(kb.pageEncoding or UNICODE_ENCODING)
|
||||||
|
else:
|
||||||
|
return unichr(value)
|
||||||
except:
|
except:
|
||||||
return INFERENCE_UNKNOWN_CHAR
|
return INFERENCE_UNKNOWN_CHAR
|
||||||
|
|
||||||
|
|
|
@ -224,9 +224,9 @@
|
||||||
<count query="COUNT(%s)"/>
|
<count query="COUNT(%s)"/>
|
||||||
<comment query="--"/>
|
<comment query="--"/>
|
||||||
<timedelay query="BEGIN DBMS_LOCK.SLEEP(%d); END" query2="EXEC DBMS_LOCK.SLEEP(%d.00)" query3="EXEC USER_LOCK.SLEEP(%d.00)"/>
|
<timedelay query="BEGIN DBMS_LOCK.SLEEP(%d); END" query2="EXEC DBMS_LOCK.SLEEP(%d.00)" query3="EXEC USER_LOCK.SLEEP(%d.00)"/>
|
||||||
<substring query="SUBSTR((%s),%d,%d)"/>
|
<substring query="SUBSTRC((%s),%d,%d)"/>
|
||||||
<case query="SELECT (CASE WHEN (%s) THEN 1 ELSE 0 END)"/>
|
<case query="SELECT (CASE WHEN (%s) THEN 1 ELSE 0 END)"/>
|
||||||
<inference query="ASCII(SUBSTR((%s),%d,1)) > %d"/>
|
<inference query="ASCII(SUBSTRC((%s),%d,1)) > %d"/>
|
||||||
<banner query="SELECT banner FROM v$version WHERE ROWNUM=1"/>
|
<banner query="SELECT banner FROM v$version WHERE ROWNUM=1"/>
|
||||||
<current_user query="SELECT USER FROM DUAL"/>
|
<current_user query="SELECT USER FROM DUAL"/>
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in New Issue
Block a user