From 9bb90b60dbd9cac57b7e043d7e19dd8c12785daa Mon Sep 17 00:00:00 2001 From: gs Date: Mon, 30 Sep 2019 22:43:38 +0300 Subject: [PATCH] Fixed IPv6 checking --- poisoners/LLMNR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poisoners/LLMNR.py b/poisoners/LLMNR.py index dca224dd..657ba1c0 100644 --- a/poisoners/LLMNR.py +++ b/poisoners/LLMNR.py @@ -36,7 +36,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 (":" not in x) and IsOnTheSameSubnet(x,IP) is False: 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)