This article has been take from ” http://blog.l-lacker.com/security-set-your-alfa-awus036h-to-1000-mw/#more-331” with the consent from the author.
Dear FellOw Leets,
Check out this great article taken from l-lacker.com. Its a Must Visit website cuz the content is really cool and the author is amazing. :p
Anyway, ever wonder why the alfa card becomes disappointing when it comes to getting signals in bactrack ? cuz most of the time its not on its full operating power. It only uses 10 % power by default over bracktrack.
To determine the current state of your alfa card , simply take a peek at iwconfig for the alfa.
root@bt:/# iwconfiglo no wireless extensions.eth0 no wireless extensions.wlan0 IEEE 802.11bg ESSID:off/anyMode:Managed Access Point: Not-Associated Tx-Power=20 dBmRetry long limit:7 RTS thr:off Fragment thr:offEncryption key:offPower Management:off
20 dBM = 100 MillWatts according to this calculator.
To increase power and get the advertised 1000mW perform the following steps.
Note: This process works in a Virtual Machine OR on a physical machine.
1. Diable the adapter
2. set the power (by changing the region code to alter the TX/RX power levels to work at the appropriate power levels for your country. ) Note: be sure you choose YOUR country. The below is a warning from the aircrack-ng page regarding these changes.
– Be sure to use this guide to set your CORRECT Country Regulatory Domain.
– Setting the wrong Reg Domain could probably break the Law in your Country.
3. Enable the adapter
4. Check it!
root@bt:/# ifconfig wlan0 down
root@bt:/# iw reg set US
root@bt:/# airmon-ng start wlan0
Interface Chipset Driver
wlan0 RTL8187 rtl8187 – [phy5]
(monitor mode enabled on mon0)
root@bt:/# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=30 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
If you head back to the dBm to mW calculator it will tell you that 30dBm 1000 mW. Success.
I can not take credit for the above, I simply put it here for my own notes to reference in the future. For more information and further reading check out the aircrack-ng forums.
Update: You will have to perform these steps each time you power on your VM or physical device. You can toss the below script in your init.d dir so you wont need to remember. Again, not my work, just placing here for quick reference.
##iw reg set <your-country-code>
iw reg set <insert-your-country-code-here-in-CAPITAL-LETERS>All country codes are in ‘CAPITAL LETTERS’
save & close text editer
then put it in the /etc/init.d/ directory.
So in a terminal enter
sudo cp ~/Desktop/setwirelesscountrycode.sh /etc/init.d/
Then make the file you created executable.e.g.
sudo chmod +x /etc/init.d/setwirelesscountrycode.sh To set it to run on startup
sudo update-rc.d /etc/init.d/setwirelesscountrycode.sh defaults note ‘defaults’ puts a link to start ‘/etc/init.d/setwirelesscountrycode.sh’ in run levels 2, 3, 4 and 5. and puts a link to stop ‘/etc/init.d/setwirelesscountrycode.sh’ into run levels 0, 1 and 6.
There is another way to set your TX power on your mentioned beautifully over this link
Simplest Way YET ….
- # ifconfig wlan1 down
- # iw reg set BO
- # ifconfig wlan1 up
- # iwconfig wlan1 channel 13
- # iwconfig wlan1 txpower 30