1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

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