Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita29ed38

Browse files
authored
Merge pull requestx4nth055#94 from filipe1417/patch-1
Update arp spoof operation code
2 parentsd37fc27 +6886ef6 commita29ed38

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
exceptKeyboardInterrupt:
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)

[8]ページ先頭

©2009-2025 Movatter.jp