#!/usr/bin/env ruby ######################################## # # 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 # ######################################## require "Lorcon" packet = "Hello World"; wifi = Lorcon::Device.new('ath0', 'madwifing') wifi.fmode = "INJECT" wifi.channel = 11 wifi.txrate = 2 wifi.modulation = "DSSS" 1000.times do wifi.write(packet) end puts "Done"