Minor update

This commit is contained in:
Miroslav Stampar 2016-06-03 14:29:32 +02:00
parent 9886b646eb
commit 350baf0a0a
4 changed files with 4 additions and 2 deletions

View File

@ -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())

View File

@ -19,7 +19,7 @@ from lib.core.enums import OS
from lib.core.revision import getRevisionNumber
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
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")

View File

@ -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

View File

@ -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