Fixes inconsistent naming in ntopng (#6716)

This commit is contained in:
MatteoBiscosi 2022-10-17 12:52:47 +02:00
parent e7d3eb19c6
commit 4728baed14
16 changed files with 586 additions and 46 deletions

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_anonymous_subscriber = classes.class(alert)
-- ##############################################
alert_ndpi_anonymous_subscriber.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_anonymous_subscriber,
i18n_title = "flow_risk.ndpi_anonymous_subscriber",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_anonymous_subscriber:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_anonymous_subscriber.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_anonymous_subscriber

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_dns_invalid_characters = classes.class(alert)
-- ##############################################
alert_ndpi_dns_invalid_characters.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_invalid_characters,
i18n_title = "flow_risk.ndpi_invalid_characters",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_dns_invalid_characters:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_dns_invalid_characters.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_dns_invalid_characters

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_error_code_detected = classes.class(alert)
-- ##############################################
alert_ndpi_error_code_detected.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_error_code_detected,
i18n_title = "flow_risk.ndpi_error_code_detected",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_error_code_detected:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_error_code_detected.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_error_code_detected

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_http_crawler_bot = classes.class(alert)
-- ##############################################
alert_ndpi_http_crawler_bot.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_http_crawler_bot,
i18n_title = "flow_risk.ndpi_http_crawler_bot",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_http_crawler_bot:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_http_crawler_bot.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_http_crawler_bot

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_possible_exploit = classes.class(alert)
-- ##############################################
alert_ndpi_possible_exploit.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_possible_exploit,
i18n_title = "flow_risk.ndpi_possible_exploit",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_possible_exploit:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_possible_exploit.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_possible_exploit

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_punicody_idn = classes.class(alert)
-- ##############################################
alert_ndpi_punicody_idn.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_punicody_idn,
i18n_title = "flow_risk.ndpi_punicody_idn",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_punicody_idn:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_punicody_idn.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_punicody_idn

View file

@ -0,0 +1,42 @@
--
-- (C) 2019-22 - ntop.org
--
-- ##############################################
local flow_alert_keys = require "flow_alert_keys"
-- Import the classes library.
local classes = require "classes"
-- Make sure to import the Superclass!
local alert = require "alert"
-- ##############################################
local alert_ndpi_tls_certificate_about_to_expire = classes.class(alert)
-- ##############################################
alert_ndpi_tls_certificate_about_to_expire.meta = {
alert_key = flow_alert_keys.flow_alert_ndpi_tls_certificate_about_to_expire,
i18n_title = "flow_risk.ndpi_tls_certificate_about_to_expire",
icon = "fas fa-fw fa-exclamation",
}
-- ##############################################
-- @brief Prepare an alert table used to generate the alert
-- @return A table with the alert built
function alert_ndpi_tls_certificate_about_to_expire:init()
-- Call the parent constructor
self.super:init()
end
-- #######################################################
function alert_ndpi_tls_certificate_about_to_expire.format(ifid, alert, alert_type_params)
return ""
end
-- #######################################################
return alert_ndpi_tls_certificate_about_to_expire