zeeks event-driven scripting language allows analysts to investigate and correlate the detected events. these scripts have a .zeek extension. customized script location are also in the following areas:
#
root@dco:~$ BROWSER > https://docs.zeek.org/en/master/scripts/base/bif/event.bif.zeek.html
events: dhcp_message
root@dco:~$ nano /opt/zeek/share/zeek/site
event dhcp_message (c: connection, is_orig: bool, msg: DHCP::Msg, options: DHCP::Options)
{
print options$host_name;
}
* the first, second and fourth lines are the predefined syntaxes of the scripting
language.
- the only part an analyst creates is the third line which tells Zeek to extract
DHCP hostnames
root@dco:~$ zeek -C -r smallFlows.pcap dhcp-hostname.zeek
student01-PC
vinlap01