From 7ca38f02ab5880a049a8e0367fdd9c6662202155 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Sat, 7 Jan 2023 17:38:11 +0100 Subject: [PATCH] fragattacks: add note on DHCP server IP address --- research/fraginternals.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/research/fraginternals.py b/research/fraginternals.py index 2451c97cc..ffe387d77 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -1199,6 +1199,9 @@ class Supplicant(Daemon): # DHCP Ack elif req_type == 5: 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 self.time_retrans_dhcp = None log(STATUS, "Received DHCP ack. My ip is {} and router is {}.".format(clientip, serverip), color="green")