Minor improvement at blind SQL inj technique for DB2

This commit is contained in:
Bernardo Damele
2011-06-27 22:28:12 +00:00
parent 75524c283d
commit 9eb683531d
2 changed files with 3 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
hintlock.release()
if hintValue is not None and len(hintValue) >= idx:
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.ACCESS, DBMS.MAXDB):
if Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.ACCESS, DBMS.MAXDB, DBMS.DB2):
posValue = hintValue[idx-1]
else:
posValue = ord(hintValue[idx-1])