Last active
July 6, 2020 10:05
-
-
Save lewixlabs/481380ed2fb1136194c24f86630b9254 to your computer and use it in GitHub Desktop.
Simple script to set a wifi card in monitor mode with tx power to 30dBm
This file contains hidden or 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