Skip to content

Instantly share code, notes, and snippets.

@jiahuang
Last active August 29, 2015 14:24
Show Gist options
  • Save jiahuang/6288610d669ff94bb67d to your computer and use it in GitHub Desktop.
Save jiahuang/6288610d669ff94bb67d to your computer and use it in GitHub Desktop.

Copy the packetspammer binary to /usr/bin on the Tessel, then run the following commands:

iw dev wlan0 interface add mon0 type monitor
ifconfig wlan0 down
ifconfig mon0 up
iw mon0 set channel 11
packetspammer -d0 mon0 > /dev/null

b/g/n

In order to switch between b/g/n

iw dev wlan0 interface add mon0 type monitor
ifconfig wlan0 down
ifconfig mon0 up
iw mon0 set channel 11
iw wlan0 set bitrates legacy-2.4 1 2 11 //把b/g/n说明写在这
packetspammer -d0 mon0 > /dev/null

###b

iw wlan0 set bitrates legacy-2.4 1 2 11

###g

iw wlan0 set bitrates legacy-2.4 6 12 24

###n

iw dev wlan0 set bitrates mcs-2.4 10

##change transmit power

ifconfig wlan0 down
iw reg set BO
iwconfig wlan0 channel 13
iwconfig wlan0 txpower 20
ifconfig wlan0 up
iwconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment