Skip to content

Instantly share code, notes, and snippets.

@lewixlabs
Last active Jul 6, 2020
Embed
What would you like to do?
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