Fixes lateral movement alert not working

This commit is contained in:
MatteoBiscosi 2021-08-09 16:16:59 +02:00
parent 4bcfe1dac5
commit d432f28ecd
3 changed files with 54 additions and 2 deletions

View file

@ -4470,6 +4470,46 @@ function getFullObsPointName(observation_point_id, compact, add_id)
return observation_point_id
end
-- ##############################################
function getMapUrl(flow, ifid, map, page)
local href = '/lua/pro/enterprise/' .. map .. '.lua?'
if flow["host"] then
href = href .. 'host=' .. flow["host"] .. "&"
end
if flow["l7proto"] then
href = href .. 'l7proto=' .. flow["l7proto"] .. "&"
end
if flow["host_pool_id"] then
href = href .. 'host_pool_id=' .. flow["host_pool_id"] .. "&"
end
if flow["vlan"] then
href = href .. 'vlan=' .. flow["vlan"] .. "&"
end
if flow["unicast_only"] then
href = href .. 'unicast_only=' .. flow["unicast_only"] .. "&"
end
if flow["first_seen"] then
href = href .. 'first_seen=' .. flow["first_seen"] .. "&"
end
if page then
href = href .. 'page='.. page .. '&'
end
if ifid then
href = href .. 'ifid=' .. ifid
end
return href
end
-- #####################
local iec104_typeids = {