Added Victim and Attacker shown into the Developer page

This commit is contained in:
Matteo Biscosi 2021-01-07 16:32:24 +01:00
parent cc611b25b3
commit bf12e0c103
27 changed files with 338 additions and 82 deletions

View file

@ -46,7 +46,7 @@ function script.hooks.min(params)
end
-- Check if the configured threshold is crossed by the value and possibly trigger an alert
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood, value, attacker)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood_attacker, value, attacker)
end
-- #################################################################

View file

@ -47,7 +47,7 @@ function script.hooks.min(params)
end
-- Check if the configured threshold is crossed by the value and possibly trigger an alert
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood, value, nil, victim)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood_victim, value, nil, victim)
end
-- #################################################################

View file

@ -42,7 +42,7 @@ function script.hooks.min(params)
end
-- Check if the configured threshold is crossed by the value and possibly trigger an alert
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood, value, nil, victim)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_flows_flood_victim, value, nil, victim)
end
-- #################################################################