from multiprocessing import Process
from scapy.all import *
import sys
import time
def get_mac(targetip):
#this function gets and records the MAC address of the network
class Arper:
def __init__(self, victim, destination, interface=”eth0″):
#This function initiate the class
def run(self):
#this function runs the overall structure of the attack
def poison(self):
#this function performs the poisoning process
def sniff(self, count=200):
#this function performs the sniffing attack
def restore(self):
#this function restores the network to its usual once the attack is finished
if __name__ == ‘__main__’:
(victim, destination, interface) = (sys.argv[1], sys.argv[2], sys.argv[3])
myarp = Arper(victim, destination, interface)
myarp.run()