diff --git a/lib/controller/checks.py b/lib/controller/checks.py index d2291565d..f6c65526f 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -478,7 +478,7 @@ def checkSqlInjection(place, parameter, value): injectable = True - if not any((conf.string, conf.notString, conf.regexp)) and kb.pageStable: + if not any((conf.string, conf.notString, conf.regexp, conf.code)) and kb.pageStable and injectable: trueSet = set(extractTextTagContent(trueRawResponse)) trueSet = trueSet.union(__ for _ in trueSet for __ in _.split()) diff --git a/lib/core/settings.py b/lib/core/settings.py index 679d1c0ab..20242271f 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.6.21" +VERSION = "1.0.6.22" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/core/threads.py b/lib/core/threads.py index f2dcd6b86..4e999b519 100644 --- a/lib/core/threads.py +++ b/lib/core/threads.py @@ -44,6 +44,7 @@ class _ThreadData(threading.local): self.inTransaction = False self.lastComparisonPage = None self.lastComparisonHeaders = None + self.lastComparisonCode = None self.lastErrorPage = None self.lastHTTPError = None self.lastRedirectMsg = None diff --git a/lib/request/comparison.py b/lib/request/comparison.py index baba2249a..6b2a282ae 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -49,6 +49,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength): if kb.testMode: threadData.lastComparisonHeaders = listToStrValue(headers.headers) if headers else "" threadData.lastComparisonPage = page + threadData.lastComparisonCode = code if page is None and pageLength is None: return None