Aranadin Posted March 19, 2013 Share Posted March 19, 2013 Hi all, after much scratching of my head and getting no where fast... I stumbled upon something that actually does work! So i thought I would share it with you all:)http://pastebin.com/JcGhBBFJ 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.BAKmv /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 broadcastifconfig wlan0 downiw reg set XXifconfig wlan0 upwifiOnce that's been executed, I then plug in my AWUS036NH, ifconfig it up, & Voila....root@Pineapple:~# iwconfiglo no wireless extensions.wlan1 IEEE 802.11bgn ESSID:off/anyMode:Managed Access Point: Not-Associated Tx-Power=33 dBmRTS thr:off Fragment thr:offEncryption key:offPower Management:oneth1 no wireless extensions.wlan0 IEEE 802.11bgn Mode:Master Tx-Power=27 dBmRTS thr:off Fragment thr:offPower Management:oneth0 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 EnjoyShare and EnjoyJourney through lifeWith a plastic boyOr Girl by your sideLet your pal be your guideAnd when it breaks downOr starts to annoyOr grinds when it movesAnd gives you no joyCos it's eaten your hatOr had sex with your catBled oil on your floorOr ripped off your doorYou get to the pointYou can't stand any moreBring it to us, we won't give a figWe'll tell you, 'Go stick your head in a pig'" Buh bye... Toodles =p Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.