Minor patch and minor improvement

This commit is contained in:
Miroslav Stampar 2016-06-03 13:59:32 +02:00
parent cc313280af
commit c5197b99a0
2 changed files with 3 additions and 3 deletions

View File

@ -476,7 +476,7 @@ def checkSqlInjection(place, parameter, value):
injectable = True
if not injectable and not any((conf.string, conf.notString, conf.regexp)) and kb.pageStable:
if not any((conf.string, conf.notString, conf.regexp)) and kb.pageStable:
trueSet = set(extractTextTagContent(truePage))
trueSet = trueSet.union(__ for _ in trueSet for __ in _.split())
@ -488,7 +488,7 @@ def checkSqlInjection(place, parameter, value):
if candidates:
candidates = sorted(candidates, key=lambda _: len(_))
for candidate in candidates:
if re.match(r"\A\w+\Z", candidate):
if re.match(r"\A\w+\Z", candidate) and candidate in truePage and candidate not in falsePage:
break
conf.string = candidate

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.19"
VERSION = "1.0.6.20"
REVISION = getRevisionNumber()
STABLE = VERSION.count('.') <= 2
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")