Implements flow callbacks and alerts in C++

This commit is contained in:
Simone Mainardi 2021-03-22 09:51:36 +01:00
parent 3659188002
commit aea9138bfb
353 changed files with 10790 additions and 4455 deletions

View file

@ -21,9 +21,6 @@ local script = {
items = {},
},
-- NOTE: hooks defined below
hooks = {},
gui = {
i18n_title = "flow_callbacks_config.web_mining",
i18n_description = "flow_callbacks_config.web_mining_description",
@ -32,16 +29,4 @@ local script = {
-- #################################################################
function script.hooks.protocolDetected(now, conf)
if(flow.getnDPICategoryName() == "Mining") then
local alert = alert_consts.alert_types.alert_web_mining.new()
alert:set_severity(conf.severity)
alert:trigger_status(50, 10, 50)
end
end
-- #################################################################
return script