mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

The capture file (btest/Traces/arp-leak.pcap) contains the exploitation of an ARP leak flaw against NetBSD 7.0.2 using Scapy etherleak() function.
17 lines
536 B
Text
17 lines
536 B
Text
# @TEST-EXEC: bro -r $TRACES/arp-leak.pcap %INPUT
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
event arp_request(mac_src: string, mac_dst: string, SPA: addr, SHA: string, TPA: addr, THA: string)
|
|
{
|
|
print "REQ", mac_src, mac_dst, SPA, SHA, TPA, THA;
|
|
}
|
|
|
|
event arp_reply(mac_src: string, mac_dst: string, SPA: addr, SHA: string, TPA: addr, THA: string)
|
|
{
|
|
print "REP", mac_src, mac_dst, SPA, SHA, TPA, THA;
|
|
}
|
|
|
|
event bad_arp(SPA: addr, SHA: string, TPA: addr, THA: string, explanation: string)
|
|
{
|
|
print "BAD", SPA, SHA, TPA, THA, explanation;
|
|
}
|