Hi,
I am trying to print unknown protocol w.r.t zeek protocol analyzer in my script. So, I searched for similar feature in zeek and saw unknown_protocol() event is there. I am using zeek 6.1.1, that event was there. So, I tried with a simple script as below, but zeek is not producing any event for unknown protocol like hart-ip, bsap-ip, omron etc. Is there anything else I am missing while using this feature?
event unknown_protocol(analyzer_name: string, protocol: count, first_bytes: string)
{
local un_info : Unknown_Info;
un_info$ts = network_time();
un_info$analyzer = analyzer_name;
un_info$protocol_id = fmt("0x%x", protocol);
un_info$protocol_id_num = protocol;
un_info$first_bytes = bytestring_to_hexstr(first_bytes);
print "Unknown protocpl dump", un_info;
Log::write(LOG_UNKNOWN, un_info);
}
Thanks
Biswa