1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 12:19:02 +00:00

Updated the broadcast-dhcp-discover script to work with the changes in the

dhcp library [Patrik]
This commit is contained in:
patrik
2011-12-29 08:59:19 +00:00
parent 02c59d1292
commit 01da8be17a

View File

@@ -155,7 +155,7 @@ action = function()
-- we nead to set the flags to broadcast
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
local socket = nmap.new_socket("udp")