Simple script to set a wifi card in monitor mode with tx power to 30dBm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# credits: https://miloserdov.org/?p=337 | |
# example_ | |
# ./txpower.sh wlan0 | |
sudo iw reg set BZ | |
sudo ip link set $1 down | |
sudo iw dev $1 set txpower fixed 30mBm | |
sudo iw $1 set monitor control | |
sudo ip link set $1 up | |
sudo iw dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment