Minor fix

This commit is contained in:
Bernardo Damele 2011-05-07 23:48:03 +00:00
parent d3589493d1
commit 8179fd63c0

View File

@ -198,6 +198,7 @@ def start():
initTargetEnv() initTargetEnv()
parseTargetUrl() parseTargetUrl()
proceed = False
testSqlInj = False testSqlInj = False
if PLACE.GET in conf.parameters: if PLACE.GET in conf.parameters:
@ -318,10 +319,15 @@ def start():
# TODO: consider the following line in __setRequestParams() # TODO: consider the following line in __setRequestParams()
# __testableParameters = True # __testableParameters = True
if len(kb.tested) > 0 and kb.tested == conf.tech: if len(kb.tested) > 0:
testSqlInj = False for t in conf.tech:
if t not in kb.tested:
proceed = True
break
else:
proceed = True
if testSqlInj: if proceed:
if not conf.string and not conf.regexp: if not conf.string and not conf.regexp:
# NOTE: this is not needed anymore, leaving only to display # NOTE: this is not needed anymore, leaving only to display
# a warning message to the user in case the page is not stable # a warning message to the user in case the page is not stable