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

@ -59,7 +59,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_tcp_syn_scan, value, attacker)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_tcp_syn_scan_attacker, value, attacker)
end
-- #################################################################

View file

@ -60,7 +60,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_tcp_syn_scan, value, nil, victim)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_tcp_syn_scan_victim, value, nil, victim)
end
-- #################################################################

View file

@ -56,7 +56,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_tcp_syn_scan, value, nil, victim)
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_tcp_syn_scan_victim, value, nil, victim)
end
-- #################################################################