dhcp.dhcp_build lease_time set to 1 second #2197
Closed
Labels
Comments
Thank you for pointing out the issue. Besides this one, the library behavior was also resulting in non-compliance with RFC 2131, which disallows option 51 in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The broadcast-dhcp-discover.nse tends to return very low lease times from DHCP servers.
dhcpd3 (configured default lease time 86400s)
Windows Server 2016 (configured default lease time 8 days)
Sometimes windows ignores the requested lease time.
Windows Server 2016 (configured default lease time 8 days)
dhcp.dhcp_build crafts a DHCPREQUEST packet that requests a 1 second lease time. If this line is commented out the request does not specify the lease and the server configured default lease is sent in the DHCPOFFER reply
packet = packet .. string.pack(">BBI4", 0x33, 4, lease_time or 1) -- Lease time
The text was updated successfully, but these errors were encountered: