Patch a Broadcom Wireless mini PCI Card to use with aircrack
Stardust is my laptop, it’s a MSI Wind Wind U100, the notebook has a Realtek RTL8187SE Wireless card, well, realtek under linux really sucks.
I configured using ndiswrapper, and did “works” … with a lot of problems, errors and so much pain *snif, tired and angry I changed the damned wireless card, now Stardust have a new device
02:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)
Using the new driver for Broadcom: b43 and using wicd surfing in a wirless networks it so pretty nice like kiss at same time two drunken dancers (trust in me)
The problem, yes, always there is a problem, it’s my cellphone, like as told them I destroyed it and now it’s a hard puzzle in somewhere in Mérida, I used my cellphone to connect me using a BAM Internet service, then I’m fucked.
Fortunately my neighbors did not break his routers, and I detected many networks near of me
Sure, with WEP protection, sure too aircrack will solve all my problems, I don’t will explain how to use aircrack, there are a lot of information in the net, just how to patch the kernel to use your wireless card with aircrack and compile it with the debian way, the debian way … hahaha I like it!
First need the kernel source, there are two ways, directly of the official site or … yes, the debian way with apt.
that means you can go to http://kernel.org/and get the source or use: apt-cache search linux-source to choose one, after using apt-get install linux-source-X.X.XX to install it.
Once downloaded and uncompressed the kernel source, (I assume we are into /usr/src/linux-XXX) need get the patch: http://patches.aircrack-ng.org/ choose your card model, in this example I use b43-injection-2.6.26-wl.patch:
Obviously it’s my example, the final path: linux-source-2.6.26 must be different
stardust:~# cd /usr/src/linux-source-2.6.26
stardust:~# wget http://patches.aircrack-ng.org/b43-injection-2.6.26-wl.patch
stardust:~# patch -p1 < b43-injection-2.6.26-wl.patch
And done, our kernel source are patched, now need compile.
Compile the Kernel Source, the Debian Way
/me laughs while caresses her black cat, muahaha muahaha
Almost all my nerds friends are afraid to “El Coco”, unfaithful girlfriends and to compile the kernel. Well the first two things they have no solution but compile the kernel it’s easy, you only need know your hardware.
First we need some tools:
stardust:~# apt-get install kernel-package dpkg-dev debianutils binutils libncurses5-dev
We can configure the kernel using the actual .config file (I recommended it) :
stardust:~# cp /boot/config-2.6.2 .config
There are several way to do it, but my favorite is:
stardust:~# make menuconfig
In this step you can configure, play, test, crash, broke your kernel, when you finished, exit and save it.
Now, make the image:
stardust:~# make-kpkg --initrd --revision 01 --append_to_version -lab kernel-image
–initrd option, yes make a initrd, –revision: set the number of revision that the package will have to control future compilations, –apend_to_version: set the extraversion in the name of image.
While you kernel is compiling, I recommended you go for a couple of beers, watch a movie, play Xbox or take a nap, yes … this will take a long time.
When it finished just install your kernel image:
stardust:~# dpkg -i ../linux-image-2.6.26lab_01_i386.deb
And … that’s all! reboot and choose your new kernel, then activate your card as monitor mode:
stardust:~# ifconfig wlan0 down
stardust:~# iwconfig wlan0 mode monitor
stardust:~# ifconfig wlan0 up
At this point, just have fun with aircrack, I did and my result is:
Happy hacking!

2 Responses to “Patch a Broadcom Wireless mini PCI Card to use with aircrack”
putitoooooooO!!!!!!!!!!!!!!!!!
¡marimar!
Leave a Reply