Aircrack-ng
Welcome, Guest. Please login or register.
August 01, 2010, 02:19:44 am

Login with username, password and session length
Search:     Advanced search
34568 Posts in 6337 Topics by 20712 Members
Latest Member: illino87t
* Home Help Search Login Register
+  Aircrack-ng
|-+  Members only
| |-+  Drivers
| | |-+  How I got the bcm43xx packet injection working in ubuntu 7.10
« previous next »
Pages: [1] 2 3 4 Print
Author Topic: How I got the bcm43xx packet injection working in ubuntu 7.10  (Read 26569 times)
romsieze
Newbie
*
Posts: 1

The Gnomes come at midnight


How I got the bcm43xx packet injection working in ubuntu 7.10
« on: December 14, 2007, 10:30:12 am »

Ok this is my first post. I searched all over the place to try and do this so I wanted to give back and give a simple short walk through. I hope this helps someone out there.

First thing is to install the firmware for the bcm43xx
$wget http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2
$sudo apt-get install bcm43xx-fwcutter
$sudo bcm43xx-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
Now the firmware is in the right place and correct.

$wget http://patches.aircrack-ng.org/bcm43xx-injection-linux-2.6.22.patch
$sudo apt-get install linux-source-2.6.22 build-essential gawk
ok now we should have everything needed to put together the patch and install it

$cd /usr/src
$tar jxvf linux-source-2.6.22.tar.bz2
$cd linux-source-2.6.22
$sudo cp ~/bcm43xx-injection-linux-2.6.22.patch bcm43xx-injection-linux-2.6.22.patch
$sudo cp ../linux-headers-2.6.22-14-generic/.config .config
$sudo patch -p1 -i bcm43xx-injection-linux-2.6.22.patch
should say something like patching file blah blah I dont remember exactly. Just as long as you dont see failed  Wink

Now it is time to compile our driver
$sudo make modules
This part take forever...*Suggest you go see a movie*
$sudo make modules_install
Now we should have the .ko file we need

$sudo cp /usr/src/linux-source-2.6.22/drivers/net/wireless/bcm43xx/bcm43xx.ko /lib/modules/2.6.22-14-generic/kernel/drivers/net/wireless/bcm43xx/bcm43xx.ko
$sudo rmmod bcm43xx
$sudo modprobe bcm43xx
$sudo reboot
Ok now we should have a patched driver for our wireless card...Yay!!!

Now for aircrack-ng 0.9.1
$wget http://download.aircrack-ng.org/aircrack-ng-0.9.1.tar.gz
$tar -zxvf aircrack-ng-0.9.1.tar.gz
$cd aircrack-ng-0.9.1
$make
$make install
Now you should have Aircrack-ng

To avoid trouble later go to the 2 computers looking icon up by the time and right click and make sure that there is not a check next to Enable Wireless.

To put your wireless card into monitor mode. My card is listed as eth1
$sudo ifconfig eth1 up
$sudo iwconfig eth1 mode monitor essid <yourapname> channel <yourapchannel>
$sudo aireplay-ng -9 eth1
If there are access points around it should say injection is working.
For more information on using aircrack-ng suite check the aircrack-ng website at www.aircrack-ng.org

To install and configure kismet
$sudo apt-get install kismet
$sudo gedit /etc/kismet/kismet.conf

change the following line
source=bcm43xx,eth1,kismet
save

$sudo kismet
Now you should be in business.

Once again I hope this helps someone and that I did not forget anything. If I did please let me know of any errors you get as I have probably seen all of them hehe. Oh and I am still having trouble with aireplay when I used option -1 and -3 for aircrack-ptw and so I update my aircrack-ng version to beta 1.0.0 still getting memory error in 0.9.1 and 1.0.0. If anyone has ideas on that I would love to know. I have tried to set my rate at 1M, 5.5M, and even 11M but no help. Does not happen any other time. I have successfully cracked my 128bit key in about 8hr and I think that is because my PPS is only like 12 or 15. But it did work. If you experience freezing in 0.9.1 I suggest going to beta 1.0.0

-Romsieze

UPDATE*
I have figured out my issue with the memory error I was receiving it was the write_wi() or wi_write error alot of people are getting. I figured out that the closer you are to the AP the higher you set your rate to. for instance:

Im two feet from my AP
$sudo iwconfig eth1 rate 54M

My friend Bonnie's AP next door
$sudo iwconfig eth1 rate 1M <--could probably go higher as I do get decent signal from her. 2 Bars according to windows xp machine

so now everything is working 100%. Thank you to the developers of all programs, drivers and patches used.
« Last Edit: December 14, 2007, 12:33:31 pm by romsieze » Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #1 on: December 14, 2007, 05:22:15 pm »

romsieze,

Thanks for your contribution.  I have added this thread to the wiki documentation for the bcm43xx.  I am sure other people will find it useful.

d.
Logged
C-Sniper
Newbie
*
Posts: 49


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #2 on: December 27, 2007, 12:48:44 am »

also regarding the wi_write() memory error.
i ran a dmesg and whole bunch of bcm43xx errors came up
here is a log
Code:
bcn43xx: ASSERTION FAILED (!ring->suspended) at: drivers/net/wireless/bcm43xx_dma.c:71:request_slot()

so it is looking to be a DMA problem

right now i am currently running Slackware 12.0 with the 2.6.23.12 kernel.
running the 2.6.22 injection patch, which was applied to bcm43xx_main.c
with patching, only the 5th hunk succeeded, all the others hunks gave no error or warning.

hope this helps.
Cheers
C-Sniper
« Last Edit: December 27, 2007, 12:50:17 am by C-Sniper » Logged
pablox
Newbie
*
Posts: 1


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #3 on: January 02, 2008, 08:42:22 pm »

Sorry, I don't get a couple of things. I had a problem with bcm43xx so I began to use Ndiswrapper. Truth is I want to use bcm43xx, but if I try to use that firmware I can't connect to Internet.

With:

Code:
bcm43xx-fwcutter -i wl_apsta.o
(wl_apsta.o from the kmod directory from the file that you tell to download)

Code:
*** WARNING ***
This file contains new version4
firmware. v4 firmware is _not_ supported by
the driver in mainline kernels. For v4 firmware
you need latest bcm43xx development version
(wireless-dev kernel tree). If you don't know what
this warning is about, use a 3.xx.xx.xx driver version
instead to extract the firmware.

  filename   :  wl_apsta.o
  version    :  4.80.53.0
  MD5        :  9207bc565c2fc9fa1591f6c7911d3fc0
  microcodes :  4 5 11 13
  pcms       :  4 5

If I try to use that firmware to use my wireless I can't (modprobe bcm43xx), dmesg tells something about can't use that firmware... (I lost that and I don't know how to see old dmesgs.)
Logged
anandchakru
Newbie
*
Posts: 1


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #4 on: January 07, 2008, 09:33:45 am »

Thanks buddy for your wonderful post, but i was jus wondering will this patch fix my problem of wireless adapter not connecting consistently?

Thanks,
Anand
Logged
mkyle1121
Newbie
*
Posts: 1


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #5 on: January 09, 2008, 07:21:20 pm »

Romseize, thanks for the post, I'm pretty new to linux and it helped out alot.  I got all the way down to the aireplay part and got stuck, heres my output:

iwconfig

eth1      IEEE 802.11b/g  ESSID:off/any  Nickname:"Broadcom 4311"
             Mode:Monitor  Frequency=2.472 GHz  Access Point: Invalid   
             Bit Rate=1 Mb/s   Tx-Power=18 dBm   
             RTS thr:off   Fragment thr:off
             Encryption key:off
             Link Quality=0/100  Signal level=-256 dBm  Noise level=-256 dBm
             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
             Tx excessive retries:0  Invalid misc:0   Missed beacon:0

aireplay-ng -9 eth1

10:02:14  Trying broadcast probe requests...
10:02:15  No Answer...
10:02:15  Found 0 APs

(theres about 4 AP around my house)

If i change the essid and channel to my essid and channel i get the same thing.  I finally got Kismet config'd and working but it doesn't pick up any access points or any packets.  Anyone have any ideas??

Logged
PutinI
Newbie
*
Posts: 2


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #6 on: February 11, 2008, 01:24:48 am »

But i have one problem!
root@Laptop:~# sudo bcm43xx-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
Cannot open input file wl_apsta-3.130.20.0.o
root@Laptop:~#

Whats the reason for this and what can i do! i cant find some wl_apsta in /lib/firmware ?

root@Laptop:~# cd /lib/firmware/
root@Laptop:/lib/firmware# ls
2.6.20-12-generic     bcm43xx_initval03.fw  bcm43xx_initval07.fw  bcm43xx_microcode11.fw  bcm43xx_pcm4.fw
2.6.22-14-generic     bcm43xx_initval04.fw  bcm43xx_initval08.fw  bcm43xx_microcode2.fw   bcm43xx_pcm5.fw
bcm43xx_initval01.fw  bcm43xx_initval05.fw  bcm43xx_initval09.fw  bcm43xx_microcode4.fw
bcm43xx_initval02.fw  bcm43xx_initval06.fw  bcm43xx_initval10.fw  bcm43xx_microcode5.fw
root@Laptop:/lib/firmware#


Wahts wrong? please help me!
thx
« Last Edit: February 11, 2008, 01:27:29 am by PutinI » Logged
Mister_X
Administrator
Hero Member
*****
Posts: 3626


WWW
Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #7 on: February 12, 2008, 12:58:25 am »

you're trying to open a file that doesn't exist. It normal that it cannot find it.
Logged
divby1
Newbie
*
Posts: 1


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #8 on: February 12, 2008, 03:02:55 am »

First up,  romsieze thank you, this guide got me going in the right directions on my powerbook g4 with the bcm4306 chipset.

Putin, wl_apsta-3.130.20.0.o can be found at http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o

First thing is to install the firmware for the bcm43xx
$wget http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2
$sudo apt-get install bcm43xx-fwcutter
$sudo bcm43xx-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
Now the firmware is in the right place and correct.

the broadcom-wl-4.80.53.0.tar.bz2 version of wl_apsta_mime.o needs b43-fwcutter if you wanna use that, but that version of the driver did not work for me.

download wl_apsta-3.130.20.0.o from the link above, and install using the quoted instructions except wget http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o instead of wget http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2

or if you wanna try using the broadcom-wl-4.80.53.0.tar.bz2 version of the driver, then extract wl_apsta_mimo.o from the archive and then type:
sudo b43-fwcutter -w /lib/firmware driver/wl_apsta_mimo.o

now what I wonder about is if we could be using the bh3 driver that uses the mac80211 stack in aircrack-ng-1.0? is there a patch for this driver?
Logged
palemmo
Guest


Email
Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #9 on: February 13, 2008, 10:09:44 am »

Hi I've a lot of things compiled from source, for example the madwifi driver for my atheros card....do you think that following you howto i should recomplile all the drivers? Nvidia, atheros, audio....and the sw as pidgin....? I'm not an expert about this, I know if that i compile something important as the kernel (when i've updated it) i have to recompile everything compiled before...is the same case?
Thanks
Alessio
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #10 on: February 13, 2008, 03:30:34 pm »

palemmo,

For madwifi-ng in particular, you don't need to recompile your kernel.

d.
Logged
palemmo
Guest


Email
Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #11 on: February 13, 2008, 03:49:30 pm »

palemmo,

For madwifi-ng in particular, you don't need to recompile your kernel.

d.

Why? Is included in kernel modules? The ones included didn't work I was obliged to install the drivers manually...

So...recompiling modules I have to recompile also audio and other hw?
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #12 on: February 13, 2008, 03:51:52 pm »

palemmo,

No, for the last time, for madwifi-ng (atheros) you do not need to recompile your kernel or any other modules.  Simply install, compile and install the madwifi-ng drivers.

The next time, start a separate thread since this one is really about bcm not madwifi-ng.

d.
« Last Edit: February 13, 2008, 03:58:59 pm by darkAudax » Logged
PutinI
Newbie
*
Posts: 2


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #13 on: February 13, 2008, 08:32:44 pm »

My next problem is when i do sudo modules_install my notebook (after 2 minutes) Donīt reakt anymore? it hang up! Whats wrong? Can somebody helpme?
Logged
Barbaryloki
Newbie
*
Posts: 1


Re: How I got the bcm43xx packet injection working in ubuntu 7.10
« Reply #14 on: February 18, 2008, 08:10:23 am »

I am having all sorts of problems with this. First, when I try to input "sudo bcm43xx-fwcutter -w /lib/firmware wl_apasta-3.130.20.0.o" it says "cannot open input file wl_apasta-3.130.20.0.o"

I figure I shouldn't go much farther until I can get that worked out. :/
Logged
Pages: [1] 2 3 4 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Aircrack-ng | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!