Skip to content

Commit eb24024

Browse files
committed
minor update
1 parent b4ce857 commit eb24024

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎lib/controller/controller.py‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def start():
361361
if (len(kb.injections) == 0 or (len(kb.injections) == 1 and kb.injections[0].place is None)) \
362362
and (kb.injection.place is None or kb.injection.parameter is None):
363363

364-
if not conf.string and not conf.regexp:
364+
if not conf.string and not conf.regexp and PAYLOAD.TECHNIQUE.BOOLEAN in conf.tech:
365365
# NOTE: this is not needed anymore, leaving only to display
366366
# a warning message to the user in case the page is not stable
367367
checkStability()
@@ -442,15 +442,14 @@ def start():
442442
elif conf.realTest:
443443
pass
444444

445-
elif not checkDynParam(place, parameter, value):
446-
warnMsg = "%s parameter '%s' appears to be not dynamic" % (place, parameter)
447-
logger.warn(warnMsg)
445+
elif PAYLOAD.TECHNIQUE.BOOLEAN in conf.tech:
446+
if not checkDynParam(place, parameter, value):
447+
warnMsg = "%s parameter '%s' appears to be not dynamic" % (place, parameter)
448+
logger.warn(warnMsg)
448449

449-
else:
450-
kb.foundDynamicParameter = True
451-
452-
infoMsg = "%s parameter '%s' is dynamic" % (place, parameter)
453-
logger.info(infoMsg)
450+
else:
451+
infoMsg = "%s parameter '%s' is dynamic" % (place, parameter)
452+
logger.info(infoMsg)
454453

455454
kb.testedParams.add(paramKey)
456455

0 commit comments

Comments
 (0)