mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 12:49:02 +00:00
Updated the broadcast-dhcp-discover script to work with the changes in the
dhcp library [Patrik]
This commit is contained in:
@@ -155,7 +155,7 @@ action = function()
|
|||||||
|
|
||||||
-- we nead to set the flags to broadcast
|
-- we nead to set the flags to broadcast
|
||||||
local request_options, overrides, lease_time = nil, { flags = 0x8000 }, nil
|
local request_options, overrides, lease_time = nil, { flags = 0x8000 }, nil
|
||||||
local status, packet = dhcp.dhcp_build(request_type, ip_address, mac, request_options, overrides, lease_time, transaction_id)
|
local status, packet = dhcp.dhcp_build(request_type, ip_address, mac, nil, request_options, overrides, lease_time, transaction_id)
|
||||||
if (not(status)) then return "\n ERROR: Failed to build packet" end
|
if (not(status)) then return "\n ERROR: Failed to build packet" end
|
||||||
|
|
||||||
local socket = nmap.new_socket("udp")
|
local socket = nmap.new_socket("udp")
|
||||||
|
|||||||
Reference in New Issue
Block a user