Remote Exploit Forums

Go Back   Remote Exploit Forums > Archives > Latest Public Release - BackTrack4 Beta > BT4beta HowTo's


BT4beta HowTo's Guides and HowTo's For BT4 BETA

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-18-2009, 02:23 PM
cybrsnpr's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Secret Undisclosed Tiki Bar
Posts: 619
Default BT4 - Enable Channels 12,13,14

To enable "non-US" channels on your wireless card under BT4 (and the new mac80211 stack):

You will need to download a few packages, and programs to enable use of the upper channels of the 802.11b/g spectrum:

Code:
apt-get install python-m2crypto libgcrypt11 libgcrypt11-dev
download crda and the latest wireless-regdb, both of which can be found at:

http://wireless.kernel.org/en/develo...egulatory/CRDA

Next, extract the wireless-regdb contents:

Code:
tar xvjf wireless-regdb-2008.11.17.tar.bz2 (latest file when I tried this)
and copy the file "regulatory.bin" to /usr/lib/crda/

Code:
mkdir /usr/lib/crda
cp regulatory.bin /usr/lib/crda/
Next, untar the CRDA tarball you downloaded:

Code:
tar xvjf crda-1.0.1.tar.bz2
change dir to the resulting crda directory, compile and install:

Code:
cd crda-1.0.1
make && make install
Copy the file regulatory.rules found in the udev subdirectory under crda to /etc/udev/rules.d/85-regulatory.rules

Code:
cd udev
cp regulatory.rules /etc/udev/rules.d/85-regulatory.rules
Now, you should be able to set your country code using iw:

Code:
iw reg set ##
(where ## is the ISO Alpha2 code for your country such as DK for Denmark)

This should open up all the channels that are usable in your particular country.

Use iw to see what frequencies/channels are available:

Code:
iw list

Last edited by cybrsnpr; 05-04-2009 at 07:52 PM. Reason: typo and forgot to specify which crda dir to compile in
Reply With Quote
  #2 (permalink)  
Old 04-30-2009, 08:06 PM
Just burned his ISO
 
Join Date: Apr 2009
Posts: 3
Default

Thanks, Im going to need this !
Good job
Reply With Quote
  #3 (permalink)  
Old 04-30-2009, 08:24 PM
KMDave's Avatar
Administrator
 
Join Date: Jan 2008
Location: Moshpit
Posts: 2,006
Default

Thanks a lot, great howto.
__________________
"You cannot help men permanently by doing for them what they will not do for themselves."
-- Abraham Lincoln
Reply With Quote
  #4 (permalink)  
Old 05-04-2009, 07:38 PM
onryo's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Earth
Posts: 110
Default Enable Channels for 12, 13

Thx cybersnper!
Really needed this but there seem to be some typos in what you did here. The problems I am had are the following.

After the first typo on the tar xvzj wireless-regdb-2008.11.17.tar.bz2 – Just a typo. I make the make the dir “crdu” under /usr/lib/ … cool cool. From the untared folder I just copy the new regulatory.bin to the new /usr/lib/crda folder , np.

This is where I don't quite follow you. I now go into /usr/lib/crda and run

make && make install ? All that is in there is the regulatory.bin that I cp over into that folder. Can't find any subdirectory “udev”under crda ether.

I tried this using the same exact wireless-regdb-2008.11.17.tar.bz2 (not the newest one) that you used on BT4.

I am sure I could just go into http://linuxwireless.org/en/developers/Regulatory/CRDA and fix this in no time but maybe others might fall into some of the pitfalls that I did if they follow your tut. Don't want to be a butt wad but this is a "BT4beta HowTo's"

All the best
onryo
__________________
Let me explain officer, I am not a hacker. I am a security tester of sorts!

Last edited by onryo; 05-04-2009 at 07:42 PM.
Reply With Quote
  #5 (permalink)  
Old 05-04-2009, 07:53 PM
cybrsnpr's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Secret Undisclosed Tiki Bar
Posts: 619
Default

Thanks for the heads up. Fixed the steps.
Reply With Quote
  #6 (permalink)  
Old 05-05-2009, 12:10 AM
onryo's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Earth
Posts: 110
Default Channels 12,13 CRDA is not called by kernel?

Thx cybr! Reads like a charm now!
Was wondering if you are having the same problems as I have. Everything works fine until I reboot. Then all falls to default. Working off a 32GB USB...yeah I can save. After a quick look it would seem that the kernel is having problems speaking to the userspace events. Or that CRDA is not called right. I am not really sure.

played a little with to see what was up etc.

# udevadm monitor --environment kernel

I can fix this by just doing the following at every reboot
# cp regulatory.rules /etc/udev/rules.d/85-regulatory.rules

# iw reg set SE

This one has me stumped. Any ideas?

Best to ya!
onryo
__________________
Let me explain officer, I am not a hacker. I am a security tester of sorts!

Last edited by onryo; 05-05-2009 at 01:21 AM.
Reply With Quote
  #7 (permalink)  
Old 05-05-2009, 01:57 AM
cybrsnpr's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Secret Undisclosed Tiki Bar
Posts: 619
Default

I haven't noticed any problem. The rules are still in the /etc/udev/rules.d folder after reboot. I'm in the U.S. so I never worried about how to get it to set to a different regulatory domain permanently. I would guess that you could put the "iw reg set SE" statement into rc.local though.

I'm assuming of course that you are using a distro build that allows changes (i.e. not a live CD/USB).
Reply With Quote
  #8 (permalink)  
Old 05-05-2009, 06:11 AM
onryo's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Earth
Posts: 110
Default

Quote:
I'm assuming of course that you are using a distro build that allows changes (i.e. not a live CD/USB).
lol you are assuming right I am using a 16 GB USB that I can save on. No big deal if I quickly need to chuck it into the microwave. I am sure I did something bionicly retarded when I borked the first install. Actully I just only have to do the " iw reg set SE" part.

All the best
onryo!
__________________
Let me explain officer, I am not a hacker. I am a security tester of sorts!

Last edited by onryo; 05-05-2009 at 06:52 AM.
Reply With Quote
  #9 (permalink)  
Old 05-05-2009, 09:37 PM
Senior Member
 
Join Date: Apr 2006
Posts: 163
Default

I get this:

root@bt:~# iw reg set DK
nl80211 not found.
root@bt:~#


What's wrong?
Reply With Quote
  #10 (permalink)  
Old 05-05-2009, 09:39 PM
cybrsnpr's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Secret Undisclosed Tiki Bar
Posts: 619
Default

Quote:
Originally Posted by michelinok View Post
I get this:

root@bt:~# iw reg set DK
nl80211 not found.
root@bt:~#


What's wrong?
No idea. Don't have a lot to go on here. Are you using mac80211 drivers? What kind of card are you using?
Reply With Quote
Reply

Bookmarks

Tags
crda, mac80211

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2