Optimize BPF to capture only DHCP responses

This commit is contained in:
nnposter 2022-04-24 01:22:54 +00:00
parent 81088425f3
commit e73041f34b

View file

@ -236,7 +236,7 @@ action = function()
local sock, co
sock = nmap.new_socket()
sock:pcap_open(iface, 1500, false, "ip && udp && port 68")
sock:pcap_open(iface, 1500, false, "ip && udp dst port 68")
co = stdnse.new_thread( dhcp_listener, sock, iface, macaddr, timeout, xid, result )
threads[co] = true
end