Minor update for Issues #292 & #293 (only single alert per target)

This commit is contained in:
Miroslav Stampar
2012-12-11 14:44:43 +01:00
parent 5c2451d83c
commit a54c261496
2 changed files with 11 additions and 7 deletions

View File

@@ -521,15 +521,18 @@ def checkSqlInjection(place, parameter, value):
injection.conf.regexp = conf.regexp
injection.conf.optimize = conf.optimize
if conf.beep:
beep()
if not kb.alerted:
if conf.beep:
beep()
if conf.alert:
infoMsg = "executing alerting shell command(s) ('%s')" % conf.alert
logger.info(infoMsg)
if conf.alert:
infoMsg = "executing alerting shell command(s) ('%s')" % conf.alert
logger.info(infoMsg)
process = execute(conf.alert, shell=True)
process.wait()
process = execute(conf.alert, shell=True)
process.wait()
kb.alerted = True
# There is no need to perform this test for other
# <where> tags