More fix for --technique resume

This commit is contained in:
Bernardo Damele
2011-05-05 16:38:46 +00:00
parent e96a533a04
commit 2d8408c885
2 changed files with 27 additions and 2 deletions

View File

@@ -317,9 +317,18 @@ def start():
# TODO: consider the following line in __setRequestParams()
# __testableParameters = True
if (len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None)) \
and (kb.injection.place is None or kb.injection.parameter is None):
proceed = False
if len(kb.injections) > 0:
for resumedInj in kb.injections:
for tech in conf.tech:
if tech not in resumedInj.data:
proceed = True
break
else:
proceed = True
if proceed:
if not conf.string and not conf.regexp:
# NOTE: this is not needed anymore, leaving only to display
# a warning message to the user in case the page is not stable