#!/usr/bin/python ######################################## # # This code is part of the SANS/GIAC Gold Paper titled # # Programming Wireless Security # # by Robin Wood (dninja@gmail.com), accepted May 2008 # # For more information you can find the paper in the "Wireless Access" section of the # SANS Reading Room at http://www.sans.org/reading_room/ or at www.digininja.org # ######################################## import sys import pylorcon wifi = pylorcon.Lorcon("ath0", "madwifing") wifi.setfunctionalmode("INJECT"); wifi.setmode("MONITOR"); wifi.setchannel(1); print "about to transmit"; packet = 'Hello World'; for n in range(10000): wifi.txpacket (packet); print "done";