From 9eb683531dae0ceb888e7a3cb36ce80667dac1c6 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 27 Jun 2011 22:28:12 +0000 Subject: [PATCH] Minor improvement at blind SQL inj technique for DB2 --- lib/techniques/blind/inference.py | 2 +- xml/queries.xml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index cdd1196f3..07b568726 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -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]) diff --git a/xml/queries.xml b/xml/queries.xml index bd7c5772c..eaeb00438 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -564,8 +564,7 @@ - - + @@ -602,7 +601,7 @@ - +