mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor update
This commit is contained in:
parent
46f42f2fe4
commit
f8ae0e5272
|
@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from lib.core.exception import sqlmapSyntaxException
|
from lib.core.exception import sqlmapSyntaxException
|
||||||
|
|
||||||
from plugins.generic.syntax import Syntax as GenericSyntax
|
from plugins.generic.syntax import Syntax as GenericSyntax
|
||||||
|
|
||||||
class Syntax(GenericSyntax):
|
class Syntax(GenericSyntax):
|
||||||
|
@ -30,7 +31,6 @@ class Syntax(GenericSyntax):
|
||||||
|
|
||||||
lastIndex = firstIndex + index
|
lastIndex = firstIndex + index
|
||||||
old = "'%s'" % expression[firstIndex:lastIndex]
|
old = "'%s'" % expression[firstIndex:lastIndex]
|
||||||
#unescaped = "("
|
|
||||||
unescaped = ""
|
unescaped = ""
|
||||||
|
|
||||||
for i in xrange(firstIndex, lastIndex):
|
for i in xrange(firstIndex, lastIndex):
|
||||||
|
|
|
@ -31,11 +31,10 @@ class Syntax(GenericSyntax):
|
||||||
|
|
||||||
lastIndex = firstIndex + index
|
lastIndex = firstIndex + index
|
||||||
old = "'%s'" % expression[firstIndex:lastIndex]
|
old = "'%s'" % expression[firstIndex:lastIndex]
|
||||||
#unescaped = "("
|
|
||||||
unescaped = ""
|
unescaped = ""
|
||||||
|
|
||||||
for i in xrange(firstIndex, lastIndex):
|
for i in xrange(firstIndex, lastIndex):
|
||||||
unescaped += "CHAR(%d)" % (ord(expression[i]))
|
unescaped += "%s(%d)" % ("CHAR" if ord(expression[i]) < 256 else "TO_UNICHAR", ord(expression[i]))
|
||||||
if i < lastIndex - 1:
|
if i < lastIndex - 1:
|
||||||
unescaped += "+"
|
unescaped += "+"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user