Fixed incorrect call to checkBooleanExpression when testing for false positives

This commit is contained in:
Martin Bjerregaard Jepsen 2013-03-01 22:51:34 +01:00
parent 3a3f9c5ea1
commit d7a77c79ad

View File

@ -661,7 +661,7 @@ def checkFalsePositives(injection):
# Just in case if DBMS hasn't properly recovered from previous delayed request # Just in case if DBMS hasn't properly recovered from previous delayed request
if PAYLOAD.TECHNIQUE.BOOLEAN not in injection.data: if PAYLOAD.TECHNIQUE.BOOLEAN not in injection.data:
checkBooleanExpression("%d=%d", randInt1, randInt2) checkBooleanExpression("%d=%d" % (randInt1, randInt2))
if checkBooleanExpression("%d>(%d+%d)" % (min(randInt1, randInt2), randInt3, max(randInt1, randInt2))): if checkBooleanExpression("%d>(%d+%d)" % (min(randInt1, randInt2), randInt3, max(randInt1, randInt2))):
retVal = None retVal = None