mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Updated the broadcast-dhcp-discover script to work with the changes in the
dhcp library [Patrik]
This commit is contained in:
parent
02c59d1292
commit
01da8be17a
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue