From 79d4d970a5658d9a36919ed0ed23f5cfa72c676d Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 20 Feb 2015 15:42:28 +0000 Subject: [PATCH] trivial code cleanup --- lib/controller/checks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 65f264077..2683accf6 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -350,6 +350,7 @@ def checkSqlInjection(place, parameter, value): # will likely result in a different content kb.data.setdefault("randomInt", str(randomInt(10))) kb.data.setdefault("randomStr", str(randomStr(10))) + if conf.invalidLogical: _ = int(kb.data.randomInt[:2]) origValue = "%s AND %s=%s" % (value, _, _ + 1) @@ -359,6 +360,7 @@ def checkSqlInjection(place, parameter, value): origValue = kb.data.randomStr[:6] else: origValue = "-%s" % kb.data.randomInt[:4] + templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where) elif where == PAYLOAD.WHERE.REPLACE: origValue = ""