mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
33 lines
No EOL
654 B
Lua
33 lines
No EOL
654 B
Lua
--
|
|
-- (C) 2013-23 - ntop.org
|
|
--
|
|
-- **********************************************************
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
package.path = dirs.installdir .. "/scripts/lua/pro/modules/?.lua;" .. package.path
|
|
|
|
local cve_utils = {}
|
|
|
|
function cve_utils.getCVEscore(cve_name)
|
|
|
|
--[[ FOR TEST
|
|
if (cve_name == 'CVE-2011-2900') then
|
|
return 9.0
|
|
end
|
|
|
|
if (cve_name == 'CVE-2009-4535') then
|
|
return 3.8
|
|
end
|
|
|
|
if (cve_name == 'CVE-2009-1354') then
|
|
return 6.9
|
|
end
|
|
--]]
|
|
|
|
-- must be a number
|
|
return 0
|
|
end
|
|
|
|
|
|
return cve_utils |