@conf.commands.register
def arpcachepoison(target, victim, interval=60):
 tmac = getmacbyip(target)
 p = (Ether(dst=tmac) / ARP(op='who-has', psrc=victim, pdst=target))
 try:
  while 1:
   sendp(p, iface_hint=target)
   if (conf.verb > 1):
    os.write(1, '.')
   time.sleep(interval)
 except KeyboardInterrupt:
  pass

@ conf . commands . register def arpcachepoison ( target , victim , interval = 60 ) : tmac = getmacbyip ( target ) p = ( Ether ( dst = tmac ) / ARP ( op = 'who-has' , psrc = victim , pdst = target ) ) try : while 1 : sendp ( p , iface_hint = target ) if ( conf . verb > 1 ) : os . write ( 1 , '.' ) time . sleep ( interval ) except KeyboardInterrupt : pass
poison targets cache with couple arpcachepoison -> none .