Skip to content

Commit 6886ef6

Browse files
authored
Update arp operation code
Just added the operation code for arp-reply. The packages that were been sent were arp requests. It worked, but didn't match the comments and variable name.
1 parent ecbc855 commit 6886ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scapy/arp-spoofer/arp_spoof.py

+2-2
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)