mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Use promiscuous mode in broadcast-dhcp-discover. Closes #2470
This commit is contained in:
@@ -271,7 +271,7 @@ action = function()
|
|||||||
|
|
||||||
local sock, co
|
local sock, co
|
||||||
sock = nmap.new_socket()
|
sock = nmap.new_socket()
|
||||||
sock:pcap_open(iface, 1500, false, "ip && udp dst port 68")
|
sock:pcap_open(iface, 1500, true, "ip && udp dst port 68")
|
||||||
co = stdnse.new_thread( dhcp_listener, sock, iface, macaddr, options, timeout, xid, result )
|
co = stdnse.new_thread( dhcp_listener, sock, iface, macaddr, options, timeout, xid, result )
|
||||||
threads[co] = true
|
threads[co] = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user