fragattacks: add note on DHCP server IP address

This commit is contained in:
Mathy Vanhoef 2023-01-07 17:38:11 +01:00
parent 6af88a2dcb
commit 7ca38f02ab

View File

@ -1199,6 +1199,9 @@ class Supplicant(Daemon):
# DHCP Ack # DHCP Ack
elif req_type == 5: elif req_type == 5:
clientip = p[BOOTP].yiaddr clientip = p[BOOTP].yiaddr
# Note: The DHCP server may use a seemginly invalid IP address. The IP address of the router/gateway
# is often an option in the DHCP Ack. E.g., some DHCP server will use 1.1.1.1 as their address,
# see https://revolutionwifi.blogspot.com/2011/03/explaining-dhcp-server-1111.html
serverip = p[IP].src serverip = p[IP].src
self.time_retrans_dhcp = None self.time_retrans_dhcp = None
log(STATUS, "Received DHCP ack. My ip is {} and router is {}.".format(clientip, serverip), color="green") log(STATUS, "Received DHCP ack. My ip is {} and router is {}.".format(clientip, serverip), color="green")