From 5c83b7c45bbe1b54922611f9032f8c5fe8932dc0 Mon Sep 17 00:00:00 2001 From: also-here Date: Tue, 14 Mar 2023 21:21:19 -0500 Subject: [PATCH] Update LLMNR.py Added a IPv6 check for the DNS address. IsOnTheSameSubnet does not currently support IPv6 which is fine as ICMP-Redirecy.py currently does not yet support IPv6 either. --- poisoners/LLMNR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poisoners/LLMNR.py b/poisoners/LLMNR.py index 6021b2d..3724f51 100755 --- a/poisoners/LLMNR.py +++ b/poisoners/LLMNR.py @@ -41,7 +41,7 @@ def IsICMPRedirectPlausible(IP): elif ip[0] == 'nameserver': dnsip.extend(ip[1:]) for x in dnsip: - if x != "127.0.0.1" and IsOnTheSameSubnet(x,IP) is False: + if x != "127.0.0.1" and IsIPv6IP(x) is False and IsOnTheSameSubnet(x,IP) is False: #Temp fix to ignore IPv6 DNS addresses print(color("[Analyze mode: ICMP] You can ICMP Redirect on this network.", 5)) print(color("[Analyze mode: ICMP] This workstation (%s) is not on the same subnet than the DNS server (%s)." % (IP, x), 5)) print(color("[Analyze mode: ICMP] Use `python tools/Icmp-Redirect.py` for more details.", 5))