=2: iface=sys.argv[1]while(1): eth = Ether(src=RandMAC("*:*:*:*:*:*"),dst=RandMAC("*:*" />
发布时间:2019-08-17 08:48:55编辑:auto阅读(1928)
import sys
from scapy.all import *
import time
iface="eth0"
if len(sys.argv)>=2:
iface=sys.argv[1]
while(1):
eth = Ether(src=RandMAC("*:*:*:*:*:*"),dst=RandMAC("*:*:*:*:*:*"))
arp = IP(src=RandIP("*.*.*.*"),dst=RandIP("*.*.*.*"))
print eth.dst
packet = eth/arp/ICMP()
time.sleep(0.5)
sendp(packet,iface=iface,loop=0)
上一篇: python unittest初探
下一篇: Python元组与字典
51349
50813
41409
38207
32702
29594
28419
23315
23265
21592
1681°
2406°
2011°
1948°
2283°
1978°
2682°
4491°
4323°
3078°