diff --git a/scapy/arp-spoofer/arp_spoof.py b/scapy/arp-spoofer/arp_spoof.py index 51b9fb5b..6179bdd5 100644 --- a/scapy/arp-spoofer/arp_spoof.py +++ b/scapy/arp-spoofer/arp_spoof.py @@ -79,7 +79,7 @@ def restore(target_ip, host_ip, verbose=True): # get the real MAC address of spoofed (gateway, i.e router) host_mac = get_mac(host_ip) # crafting the restoring packet - arp_response = ARP(pdst=target_ip, hwdst=target_mac, psrc=host_ip, hwsrc=host_mac) + arp_response = ARP(pdst=target_ip, hwdst=target_mac, psrc=host_ip, hwsrc=host_mac, op="is-at") # sending the restoring packet # to restore the network to its normal process # we send each reply seven times for a good measure (count=7) @@ -108,4 +108,4 @@ def restore(target_ip, host_ip, verbose=True): except KeyboardInterrupt: print("[!] Detected CTRL+C ! restoring the network, please wait...") restore(target, host) - restore(host, target) \ No newline at end of file + restore(host, target)