Skip to content

Instantly share code, notes, and snippets.

@zhovner
Created October 24, 2013 14:45
Show Gist options
  • Save zhovner/8c3c83502867966e38ec to your computer and use it in GitHub Desktop.
Save zhovner/8c3c83502867966e38ec to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# This script generates high volume of 802.11 Probe Requests frames.
# Each frame have uniq random source MAC.
# It use Scapy http://www.secdev.org/projects/scapy/ for frames crafting.
# You need injection supported device.
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Disable IPv6 warnings
from scapy.all import sendp,Dot11,RadioTap,RandMAC
# Injection device
device = 'mon0'
# Time betwen frames send. Set 0 to unlimited
interval = 0.5
print 'Press CTRL+C to Abort'
sendp(RadioTap()/
Dot11(type=0,subtype=4,
addr1="ff:ff:ff:ff:ff:ff",
addr2=RandMAC(),
addr3="ff:ff:ff:ff:ff:ff"),
iface="mon0",loop=1,inter=interval)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment