Implements DNS searches and reworks INFO column

This commit is contained in:
Simone Mainardi 2017-05-23 14:00:19 +02:00
parent 1531767f72
commit d7b929bdc1
7 changed files with 98 additions and 52 deletions

View file

@ -303,16 +303,8 @@ for key, value in ipairs(flows_stats) do
if(debug and (not process)) then io.write("Stop Host\n") end
info = ""
if(flows_stats[key]["protos.dns.last_query"] ~= nil) then
info = shortenString(flows_stats[key]["protos.dns.last_query"])
elseif(flows_stats[key]["protos.http.last_url"] ~= nil) then
info = shortenString(flows_stats[key]["protos.http.last_url"])
elseif(flows_stats[key]["protos.ssl.certificate"] ~= nil) then
info = shortenString(flows_stats[key]["protos.ssl.certificate"])
elseif(flows_stats[key]["bittorrent_hash"] ~= nil) then
info = shortenString(flows_stats[key]["bittorrent_hash"])
elseif(flows_stats[key]["host_server_name"] ~= nil) then
info = shortenString(flows_stats[key]["host_server_name"])
if(flows_stats[key]["info"] ~= nil) then
info = shortenString(flows_stats[key]["info"])
elseif(flows_stats[key]["icmp"] ~= nil) then
info = getICMPTypeCode(flows_stats[key]["icmp"])
elseif(flows_stats[key]["proto.ndpi"] == "SIP") then