From f88f6dcd7e64bed08aebd2aedbbf509be4a6d593 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 23 Jan 2014 09:07:25 +0100 Subject: [PATCH] Changing --invalid-bignum from float producing to int producing --- 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 b8532dd53..5b54b5c21 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -333,7 +333,7 @@ def checkSqlInjection(place, parameter, value): _ = int(kb.data.randomInt[:2]) origValue = "%s AND %s=%s" % (value, _, _ + 1) elif conf.invalidBignum: - origValue = "%s.%s" % (kb.data.randomInt[:6], kb.data.randomInt[0]) + origValue = kb.data.randomInt[:6] else: origValue = "-%s" % kb.data.randomInt[:4] templatePayload = agent.payload(place, parameter, value="", newValue=origValue, where=where) diff --git a/lib/core/agent.py b/lib/core/agent.py index 69e1ce29e..ca4265195 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -121,7 +121,7 @@ class Agent(object): _ = randomInt(2) value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1) elif conf.invalidBignum: - value = "%d.%d" % (randomInt(6), randomInt(1)) + value = randomInt(6) else: if newValue.startswith("-"): value = ""