Description: Sorry about the audio I know its out be a little and I sound like crap but Linux and my headset just dont play nice together.
http://wireless.kernel.org/download/
Download Link for crda and wireless-regdb ^^^^
Also has other cool downloads like iw tool and compat-wireless drivers.
Arch Linux Users Will Need:
python-m2crypto - http://www.archlinux.org/packages/extra/i686/python-m2crypto/
base-devel
Ubuntu and Similar Linux Distros Will Need:
libgcrypt11-dev
python-m2crypto
libnl1
libnl-dev
Unrestricted Settings:
(2402 - 2494 @ 40), (N/A, 35)
(4910 - 5835 @ 40), (N/A, 35)
Please check and follow your countries laws e.g. If you shouldn’t use channel 14 don't use it!!
NOTE: I could not get this working in backtrack 4 r2. Sorry. It might be a driver issue or something they have done to the kernel or just a virtual box problem.
If you are going to attempt to get it working in backtrack I suggest you first remove the already install crda and wireless-regdb packages.
compat-wireless-patched - https://aur.archlinux.org/packages.php?ID=41472
For more information on the subject check out Vivek's Wireless LAN Security Mega primer Part 11 and/or all his other videos, they are all very good.
http://www.securitytube.net/video/1781
PKGBUILDs
PKGBUILD.crda http://pastebin.com/Xhe5LN9y
PKGBUILD.wireless-regdb http://pastebin.com/W2gNjaPZ
Tags: wireless , txpower , iw , regulatory , hack ,
Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying.
Excellent Video! and well done too!
I would not worry about the voice much, everything was very understandable and clear.
I have taked the liberty of adding this to the " Wireless Megaprimer" list :) It will be a great addition.
Thanks for taking the time to make this! We really appreciate it.
Nice one - thanks for making this, really appreciate your time.
thanks great video
@Vivek-Ramachandran; thanks for the encouragement and thanks for adding by video to your series.
@Blackmarketeer, m0ei; thanks for the support
@Acebond; thanks for the bold and great contribution, hats off to you.
If you're looking for how to do this on backtrack it's covered in a forum thread here: http://www.backtrack-linux.org/forums/beginners-forum/38455-boost-tx-power-alfa-awus036h-35-40-a.html
Just follow the link in the first forum post for most of the custom DB stuff then follow along with the forum. I need to try out the 2W abgn alfa card with the 2W directional amp/antenna and check on distances. I'll need to be way out in the middle of nowhere before I test that kind of power though...
Hi, thank for the video! But, it did not work with Ubuntu (Lucid) 10.4, even though the regdb and crda were installed with no errors using make and make install.
Do you think I need to install iw tool and compat-wireless drivers?
Thanks
Hi again, I installed both regdb and crda again and they work fine. It turns out that the first time I installed it, I was watching your video (connected) through the wireless.
Thanks for the tutorial. Now I am able to switch between EU and America when I travel :)
Sorry I though everything has worked fine, but actually not :(
Here is the summary of Ubuntu Lucid 10.4:
1- before installing the packages in this tutorial, my system used to default to:
country 98:
(2402 - 2483 @ 40), (N/A, 20)
2- after installing the packages and rebooting, the system always defaults to:
country 00:
(2402 - 2472 @ 40), (3, 20)
(2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS
(2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
And I can change the above value – country 00 – to any other country with no errors as long as the entered country is listed in the new compiled regulatory.bin (e.g. iw reg set DE)
3- once I begin to connect to my AP, the system during the handshake get back to the country 98 (in bullet# 1); and can never be set again to country 00 / or any other country even if I turned off/on the wireless button:
4- txpower changes still cannot be set to any value above 15 dBm
---------------------------------------------------------------------------------------------------------
What I am trying to do is that to default my system to country DE and to be able to change the txpower?
Where can I find on the system the country 98?
Do these behaviors have anything to do with Network Manager or the file 85-regulatory.rules?
Do I need to install the mentioned above compat-drivers and iw?
Any help is greatly appreciated!
@3azef, hmm do you know what chipset is in your wireless card?
And what driver is your wireless card using?
This is of less importance but is your wireless card USB, PCI or build onto the motherboard?
If your wireless card is working fine then you dont really need the compat-wireless drivers. (compat-wireless is just the latest wireless drivers code for people with say an old kernel that want the very latest wireless drivers) Maybe check that your iw is of the latest version.
Anther thing if you set the txpower before connecting to an AP (before your wireless card is reverting back to country 96) does the set txpower still seem to be set in iwconfig?
Also try if you already haven't "apt-get remove crda wireless-regdb" then compile your custom crda and wireless-regdb again.
I just took a look at 85-regulatory.rules you can comment it out if you want to but It shouldn't make any difference.
I managed to reproduce your program and it seems that if you set every country to your desired setting in db.txt then even when it switches to country 98 your still going to have your settings.
Also commenting out that line in 85-regulatory.rules might help so do try it.
It is 'Intel 3945 chipset' and built-in on the laptop.
It has been working fine with Aircrack's latest suite (including injection) and that's why I did not install the compat-wireless drivers.
it is 'iw version 0.9.19'
the txpower can be only set to a value less than 15 dBm whether before connecting to an AP or during the connection.
"apt-get remove crda wireless-regdb" respond with "couldn't find the package"
I will try what you suggested in last post and post the result .
Thanks a lot !
after I commented out the line in 85-regulatory.rules, my country is always stuck on country 00 and the command "iw reg set DE" does not work anymore!
when I tried to remove the 'wireless-crda' package from 'Synaptic' it will remove also 'linux-iamge-2.6.32.32-genric'.....is it going to mess up the system?
does this have anything to do my problem? https://www.insecure.ws/2010/06/05/wifi-cards-txpower-linux-mac80211-and-regulations
Thanks
3azef Please post this question to questions.securitytube.net and request acebond and others to help you out.
The comments section is not the appropriate place for micro updates on what problems you are facing.
I agree... but these comments based on the tutorial, so it helps other readers to be aware ahead of the issues I have gotten.
I think this the answer:
"Q: Why can't i use channel X, i did iw reg set NN but it is still unavailable
A: Every card sold was certified to work in a particular regulatory environment (that being set of channels, maximum allowed power, other special flags etc). On Intel cards these restrictions are enforced by firmware, Atheros's equipment has regdomain code in EEPROM which is read on startup by the driver and then (if it's not "world" regdomain) CRDA is contacted to get a set of regulatory requirements.
"
SOURCE: http://wireless.kernel.org/en/users/Documentation/FAQ
@3azef, Seems like you found the answer to your problem (txpower is set by the firmware) do you know if the kernel is loading the firmware onto the card because if so you could try find a tutorial on modifying the firmware. If its saved on your card it would probably be much more difficult. Also nice find https://www.insecure.ws/2010/06/05/wifi-cards-txpower-linux-mac80211-and-regulations I might try that out if I get some spare time.
Thanks for the video :-).
If you move the microphone farther from your mouth, you should overcome some of the audio problems you mention.
I have my Alfa set to txpower 27 I live in Canada it won't allow me to go to 30. do those 3 dBm really matter?
@infowar I wouldn't worry about it, you'd never notice the difference.
Thanks for the reply ace bond. That's kinda what I figured. I set it up to 30 any way
I just repurchased a new alfa card. actually got one for xmas stuck it in and it didn't recognize my country so I take it this is the fix for it.?
I did everything as required installed all perfectly and everything can set my txpower to 30 under XX country and also set it to 27 under CA country.
BUT every time I restart my system it sets the country back to 00.
is there any reason why this happens and is there a iw command to have it set to XX or CA by default not 00. cause it seems its set to 00 by default.
thanks for a response
jeff
I tried to follow this tutorial however the downloads at http://wireless.kernel.org/download/wireless-regdb/ don't have the zipped files. I looked in the txt file in that directory that contain the hashes, found the filename and put it in the url but got a 404 error. Did they take these down recently?