mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Optimize BPF to capture only DHCP responses
This commit is contained in:
parent
81088425f3
commit
e73041f34b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue