mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor update
This commit is contained in:
parent
cb8caf7e0f
commit
72c5b034bf
|
@ -30,14 +30,9 @@ class Syntax(GenericSyntax):
|
||||||
|
|
||||||
lastIndex = firstIndex + index
|
lastIndex = firstIndex + index
|
||||||
old = "'%s'" % expression[firstIndex:lastIndex]
|
old = "'%s'" % expression[firstIndex:lastIndex]
|
||||||
unescaped = ""
|
|
||||||
|
|
||||||
for i in xrange(firstIndex, lastIndex):
|
unescaped = "+".join("%s(%d)" % ("CHAR" if ord(expression[i]) < 256 else "NCHAR", ord(expression[i])) for i in xrange(firstIndex, lastIndex))
|
||||||
unescaped += "%s(%d)" % ("CHAR" if ord(expression[i]) < 256 else "NCHAR", ord(expression[i]))
|
|
||||||
if i < lastIndex - 1:
|
|
||||||
unescaped += "+"
|
|
||||||
|
|
||||||
#unescaped += ")"
|
|
||||||
expression = expression.replace(old, unescaped)
|
expression = expression.replace(old, unescaped)
|
||||||
else:
|
else:
|
||||||
expression = "+".join("CHAR(%d)" % ord(c) for c in expression)
|
expression = "+".join("CHAR(%d)" % ord(c) for c in expression)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user