Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bigw0rm here. Today, something completely different.
- I'm sure this has already been covered & discovered, but perhaps the information has not been shared. "(
- I'm using an Alfa AWUS036NH (notice it's not the NHA, but I'm sure this would still apply) in conjunction with the WiFi Pineapple, connected through a powered USB hub. Normally, without some tweaking, I'm only getting a txpower of 18dBm from the Pineapple's internal wireless NIC, and 27dBm from the AWUS036NH. This isn't relevant to my interests. ")
- So, what then is the secret sauza to get some more juicy juice from these NICs? Homework has been done (that's right, Google was meine Freund). Follow along. ")
- >Download the following, http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/latest-regulatory.bin
- >Move this latest-regulatory.bin file to a Linux box which has regdbdump installed & rename latest-regulatory.bin to regulatory.bin
- >Download the following, http://wireless.kernel.org/download/wireless-regdb/debs/wireless-regdb_2009.11.25.orig.tar.bz2
- >Extract the following files from this wireless-regdb_2009.11.25.orig.tar.bz2 file: dbparse.py & db2bin.py
- >Move these dbparse.py & db2bin.py files to your Pineapple's root directory.
- >Issue the following (We're now back on our Linux box): regdbdump regulatory.bin > db.txt
- >Edit db.txt and place the following lines at the end of the file:
- country XX:
- (2402 - 2492 @ 40), (N/A, 33)
- (4910 - 5835 @ 40), (N/A, 33)
- >Save this db.txt file.
- >Move your newly created & edited db.txt file to the root directory, on the Pineapple.
- >On the Pineapple, issue the following: ./db2bin.py regulatory.bin db.txt
- > Then issue the following commands:
- mv /usr/lib/crda/regulatory.bin /usr/lib/crda/regulatory.bin.BAK
- mv /root/regulatory.bin /usr/lib/crda/
- reboot
- ##NOTE: This Python command earlier, may or may not work on your Pineapple, depending on whether or not Python is installed by default (I've no idea... I installed a bunch of "infusions" onto my Pineapple, and I'm assuming Python gets installed then. I'm most likely wrong, but maybe not. Who cares. You either have Python installed or not. ")
- I've created a little script to get my Pineapple's NICs xmitting at their proper txpower after all of this junk. It follows:
- #!/bin/ash
- #Increase txpower & restart broadcast
- ifconfig wlan0 down
- iw reg set XX
- ifconfig wlan0 up
- wifi
- Once that's been executed, I then plug in my AWUS036NH, ifconfig it up, & Voila....
- root@Pineapple:~# iwconfig
- lo no wireless extensions.
- wlan1 IEEE 802.11bgn ESSID:off/any
- Mode:Managed Access Point: Not-Associated Tx-Power=33 dBm
- RTS thr:off Fragment thr:off
- Encryption key:off
- Power Management:on
- eth1 no wireless extensions.
- wlan0 IEEE 802.11bgn Mode:Master Tx-Power=27 dBm
- RTS thr:off Fragment thr:off
- Power Management:on
- eth0 no wireless extensions.
- br-lan no wireless extensions.
- I say, Nice One Bruvah! If you've enjoyed this shared knowledge... pass it along. Steal the work for your own and post it somewhere easily accessible by the community.
- "Share and Enjoy
- Share and Enjoy
- Journey through life
- With a plastic boy
- Or Girl by your side
- Let your pal be your guide
- And when it breaks down
- Or starts to annoy
- Or grinds when it moves
- And gives you no joy
- Cos it's eaten your hat
- Or had sex with your cat
- Bled oil on your floor
- Or ripped off your door
- You get to the point
- You can't stand any more
- Bring it to us, we won't give a fig
- We'll tell you, 'Go stick your head in a pig'"
- Buh bye... Toodles =p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement