I created this script awhile back for myself. It will set the regulatory domain for your device (in my case an RTL8187L device) to illegal limits of 30dBm. This script also tests to see if injection is working. Enjoy: Code: Select All iw reg set BO iwconfig wlan1 txpower 30dbm sudo aireplay-ng -9 wlan1 Note that if you download the attachment script that you might need to set permissions as 755 by chmod before you can run it as a script. E.g: Code: Select All sudo chmod 755 '/root/Desktop/Aircrack-ng-SCRIPTS/Test-Injection.sh'
Code: Select All iw reg set BO iwconfig wlan0 txpower 30dbm sudo airmon-ng start wlan0 sudo aireplay-ng -9 mon0 sudo airmon-ng stop mon0 sleep 5
whats the sleep 5 for ? and how do you set it back to lets say us ? ( would it be US ) ? because 30dbm is illegal here so it have to be a quick test
Code: Select All #!/bin/sh # Test-Injection.sh # # # Created by Adrian on 7/12/11. # Modified by Adrian Woolley, DishingTech. All rights reserved. http://dishingtech.blogspot.com # This is a basic test to determine if you card successfully supports injection. Works if you see Injection is working! Network Scan script: http://pastebin.com/1qCm75yX: needs to be initiated first iw reg set BO iwconfig wlan0 txpower 30dbm sudo airmon-ng start wlan0 sudo aireplay-ng -9 mon0 sudo airmon-ng stop mon0 sleep 5