minor update

This commit is contained in:
Miroslav Stampar 2011-10-21 22:21:41 +00:00
parent b4ce857f9b
commit eb240243ea

View File

@ -361,7 +361,7 @@ def start():
if (len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None)) \ 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): and (kb.injection.place is None or kb.injection.parameter is None):
if not conf.string and not conf.regexp: if not conf.string and not conf.regexp and PAYLOAD.TECHNIQUE.BOOLEAN in conf.tech:
# 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
checkStability() checkStability()
@ -442,15 +442,14 @@ def start():
elif conf.realTest: elif conf.realTest:
pass pass
elif not checkDynParam(place, parameter, value): elif PAYLOAD.TECHNIQUE.BOOLEAN in conf.tech:
warnMsg = "%s parameter '%s' appears to be not dynamic" % (place, parameter) if not checkDynParam(place, parameter, value):
logger.warn(warnMsg) warnMsg = "%s parameter '%s' appears to be not dynamic" % (place, parameter)
logger.warn(warnMsg)
else: else:
kb.foundDynamicParameter = True infoMsg = "%s parameter '%s' is dynamic" % (place, parameter)
logger.info(infoMsg)
infoMsg = "%s parameter '%s' is dynamic" % (place, parameter)
logger.info(infoMsg)
kb.testedParams.add(paramKey) kb.testedParams.add(paramKey)