From 5e8b105677631a0edae6ac8b6d0b4d5a78512f3a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 19 May 2016 19:46:12 +0200 Subject: [PATCH] Fixes #1880 --- lib/controller/checks.py | 5 +++-- lib/core/settings.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 9f3e9a02a..7442ef068 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -98,6 +98,9 @@ def checkSqlInjection(place, parameter, value): tests = getSortedInjectionTests() seenPayload = set() + kb.data.setdefault("randomInt", str(randomInt(10))) + kb.data.setdefault("randomStr", str(randomStr(10))) + while tests: test = tests.pop(0) @@ -381,8 +384,6 @@ def checkSqlInjection(place, parameter, value): # Use different page template than the original # one as we are changing parameters value, which # 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]) diff --git a/lib/core/settings.py b/lib/core/settings.py index d3d484b63..e7a67cfbc 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.5.38" +VERSION = "1.0.5.39" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")