Skip to content

Instantly share code, notes, and snippets.

@alexzaporozhets
Last active March 5, 2023 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexzaporozhets/20d36eb0e14906b6047fd1df9cf3b44e to your computer and use it in GitHub Desktop.
Save alexzaporozhets/20d36eb0e14906b6047fd1df9cf3b44e to your computer and use it in GitHub Desktop.
WiFi noise generator
#!/bin/bash
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo iwconfig wlan0 txpower 30
sudo iwconfig wlan0 channel 1
sudo iwconfig wlan0 freq 2.412G
sudo iw dev wlan0 info
sudo tcpreplay -i wlan0 <filename>
# sudo iwconfig wlan0 freq <frequency in MHz>
# sudo iwconfig wlan0 rate 54M fixed
# sudo iw wlan0 packet send "$(echo -ne '\x00\x11\x22\x33\x44\x55AA\xBB\xCC\xDD\xEE\xFF\x08\x01\x00\x00')"
sudo iwpriv wlan0 set_mode 3
sudo iwpriv wlan0 set_rate 54
sudo iwpriv wlan0 set_txmode 1
sudo iwpriv wlan0 raw 0x00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff
for channel in {1..13}; do
sudo iwconfig wlan0 channel $channel
sudo iwpriv wlan0 raw 0102030405
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment