Skip to content

Commit a29ed38

Browse files
authored
Merge pull request x4nth055#94 from filipe1417/patch-1
Update arp spoof operation code
2 parents d37fc27 + 6886ef6 commit a29ed38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scapy/arp-spoofer/arp_spoof.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def restore(target_ip, host_ip, verbose=True):
7979
# get the real MAC address of spoofed (gateway, i.e router)
8080
host_mac = get_mac(host_ip)
8181
# crafting the restoring packet
82-
arp_response = ARP(pdst=target_ip, hwdst=target_mac, psrc=host_ip, hwsrc=host_mac)
82+
arp_response = ARP(pdst=target_ip, hwdst=target_mac, psrc=host_ip, hwsrc=host_mac, op="is-at")
8383
# sending the restoring packet
8484
# to restore the network to its normal process
8585
# we send each reply seven times for a good measure (count=7)
@@ -108,4 +108,4 @@ def restore(target_ip, host_ip, verbose=True):
108108
except KeyboardInterrupt:
109109
print("[!] Detected CTRL+C ! restoring the network, please wait...")
110110
restore(target, host)
111-
restore(host, target)
111+
restore(host, target)

0 commit comments

Comments
 (0)