(self)
Listen for DNS packets
Listen for DNS packets
Listen for DNS packets
def dns_sniffer(self):
        """Listen for DNS packets
        """
        filter_str = "udp and port 53"
        victim = self.config['victim'].value
        if victim is not None:
            filter_str += " and src %s" % victim
        
        sniff(filter=filter_str, store=0, prn=self.spoof_dns, 
                    stopper=self.test_stop, stopperTimeout=3)
def dns_sniffer ( self ) : filter_str = "udp and port 53" victim = self . config [ 'victim' ] . value if victim is not None : filter_str += " and src %s" % victim sniff ( filter = filter_str , store = 0 , prn = self . spoof_dns , stopper = self . test_stop , stopperTimeout = 3 )