From ac2d40e259ce34b36b51f6b165b004e67f4df898 Mon Sep 17 00:00:00 2001 From: stamparm Date: Mon, 15 Jul 2013 13:34:38 +0200 Subject: [PATCH] Revert of last commit (there is a chance that that big integer value is really valid :) --- lib/controller/checks.py | 2 +- lib/core/agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 6970cd277..5e4c6e398 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -332,7 +332,7 @@ def checkSqlInjection(place, parameter, value): _ = randomInt(2) origValue = "%s AND %s=%s" % (value, _, _ + 1) elif conf.invalidBignum: - origValue = randomInt(6) + origValue = "%d.%d" % (randomInt(6), randomInt(1)) else: origValue = "-%s" % randomInt() templatePayload = agent.payload(place, parameter, newValue=origValue, where=where) diff --git a/lib/core/agent.py b/lib/core/agent.py index a05648dcb..6213935e9 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -117,7 +117,7 @@ class Agent(object): _ = randomInt(2) value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1) elif conf.invalidBignum: - value = randomInt(6) + value = "%d.%d" % (randomInt(6), randomInt(1)) else: if newValue.startswith("-"): value = ""