diff --git a/poisoners/LLMNR.py b/poisoners/LLMNR.py index 0952325..8ef4a02 100755 --- a/poisoners/LLMNR.py +++ b/poisoners/LLMNR.py @@ -58,7 +58,7 @@ class LLMNR(BaseRequestHandler): # LLMNR Server class LLMNRType = Parse_IPV6_Addr(data) # Break out if we don't want to respond to this host - if RespondToThisHost(self.client_address[0], Name) is not True: + if RespondToThisHost(self.client_address[0].replace("::ffff:",""), Name) is not True: return None #IPv4 if data[2:4] == b'\x00\x00' and LLMNRType: @@ -99,4 +99,4 @@ class LLMNR(BaseRequestHandler): # LLMNR Server class }) except: - raise + pass diff --git a/poisoners/MDNS.py b/poisoners/MDNS.py index a2bf073..5b9edb8 100755 --- a/poisoners/MDNS.py +++ b/poisoners/MDNS.py @@ -57,7 +57,7 @@ class MDNS(BaseRequestHandler): MDNSType = Parse_IPV6_Addr(data) # Break out if we don't want to respond to this host - if (not Request_Name) or (RespondToThisHost(self.client_address[0], Request_Name) is not True): + if (not Request_Name) or (RespondToThisHost(self.client_address[0].replace("::ffff:",""), Request_Name) is not True): return None if settings.Config.AnalyzeMode: # Analyze Mode diff --git a/poisoners/NBTNS.py b/poisoners/NBTNS.py index 0d94126..77b9059 100755 --- a/poisoners/NBTNS.py +++ b/poisoners/NBTNS.py @@ -31,7 +31,7 @@ class NBTNS(BaseRequestHandler): data, socket = self.request Name = Decode_Name(NetworkRecvBufferPython2or3(data[13:45])) # Break out if we don't want to respond to this host - if RespondToThisHost(self.client_address[0], Name) is not True: + if RespondToThisHost(self.client_address[0].replace("::ffff:",""), Name) is not True: return None if data[2:4] == b'\x01\x10':