gen-traffic.py 301 B

1234567891011
  1. #!/usr/bin/env python3
  2. import logging, time
  3. logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
  4. from scapy.all import *
  5. p = Ether(dst="02:00:00:00:02:00")/ARP(op=2, pdst="192.168.100.12", hwdst="02:00:00:00:02:00")
  6. while True:
  7. sendp(p, iface="wlan0")
  8. sendp(p, iface="wlan1")
  9. time.sleep(1)