From 01da8be17af15565ec66fc2238e0a7eed51398e9 Mon Sep 17 00:00:00 2001 From: patrik Date: Thu, 29 Dec 2011 08:59:19 +0000 Subject: [PATCH] Updated the broadcast-dhcp-discover script to work with the changes in the dhcp library [Patrik] --- scripts/broadcast-dhcp-discover.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/broadcast-dhcp-discover.nse b/scripts/broadcast-dhcp-discover.nse index e599beeb7..f188bb403 100644 --- a/scripts/broadcast-dhcp-discover.nse +++ b/scripts/broadcast-dhcp-discover.nse @@ -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")