Skip to content

Instantly share code, notes, and snippets.

@lewixlabs
Last active July 6, 2020 10:05
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 lewixlabs/481380ed2fb1136194c24f86630b9254 to your computer and use it in GitHub Desktop.
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
#!/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