From 6af88a2dcb1ba888a130f9c04eb8015a501b4ce0 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Sat, 7 Jan 2023 16:25:21 +0100 Subject: [PATCH] fragattacks: include server_id in DHCP request --- research/fraginternals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/research/fraginternals.py b/research/fraginternals.py index 91920c5d9..2451c97cc 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -1179,7 +1179,7 @@ class Supplicant(Daemon): reply = Ether(dst="ff:ff:ff:ff:ff:ff", src=self.station.mac)/IP(src="0.0.0.0", dst="255.255.255.255") reply = reply/UDP(sport=68, dport=67)/BOOTP(op=1, chaddr=rawmac, xid=self.dhcp_xid) reply = reply/DHCP(options=[("message-type", "request"), ("requested_addr", myip), - ("hostname", "fragclient"), "end"]) + ("server_id", offer[IP].src), ("hostname", "fragclient"), "end"]) log(STATUS, "Sending DHCP request with XID {}".format(self.dhcp_xid)) self.station.send_mon(reply)