Hi guy's here is the
complete guide on how to make the b43/b43 legacy (driver for the Broadcom wireless chips) packet injection and aircracking 802.11a/b/g/n work with kernel 2.6.25 (SUSE)
Kernel 2.6.25 works well in managed and monitor modes, Fragmentation is not broken, and has good injection speed.

*This guide is openSUSE specific*
b43 is a mac80211 driver. b43 offers a newer codebase and hardware crypto support than bcm43xx. With patches the injection speed is at least 700pps. Also, all attacks work, including fragmentation.
and has now complete support for aircracking in this kernel with aircack-ng 1.0-rc1.

For more info go here;
http://www.aircrack-ng.org/doku.php?id=b43*Make sure the Broadcom wlan card is installed with b43 or b43legacy with correct firmware!
*Most of the work from here on will be done from the command-line, so open up a terminal by Start -> Programs -> System -> Consoles -> Konsole.
"linux-kernel-headers", "kernel-source", "libopenssl-devel", "libsqlite3-0", "sqlite3" "sqlite3-devel", "libnl-devel". In addition, "base development" pattern must be installed in YaST. It might come handy to also install the "Linux kernel development" pattern.you can install these by:
zypper install linux-kernel-headers kernel-source libopenssl-devel libsqlite3-0 sqlite3 sqlite3-devel libnl-devel base development
now we will patch and compile new modules (the patches increase the injection speed and make fragmentation work)
cd /lib/modules/$(uname -r)/build
sudo wget http://patches.aircrack-ng.org/b43-injection-2.6.25-wl.patch
sudo wget http://www.latinsud.com/bcm/mac80211_2.6.24.4_frag.patch
sudo patch -p1 < b43-injection-2.6.25-wl.patch
sudo patch -p1 < mac80211_2.6.24.4_frag.patch
zcat /proc/config.gz > .config
sudo make net/mac80211/mac80211.ko drivers/net/wireless/b43/b43.ko drivers/net/wireless/b43legacy/b43legacy.ko
sudo cp net/mac80211/mac80211.ko ../kernel/net/mac80211
sudo cp drivers/net/wireless/b43/b43.ko ../kernel/drivers/net/b43
sudo cp drivers/net/wireless/b43legacy/b43legacy.ko ../kernel/drivers/net/b43legacy
sudo depmod -ae
The module should now be ready to use for injection.
Restart the PC.
Install Aircrack-ng 1.0-rc1

for more info go to
http://www.aircrack-ng.org/doku.php?id=install_aircrack wget http://download.aircrack-ng.org/aircrack-ng-1.0-rc1.tar.gz
tar -zxvf aircrack-ng-1.0-rc1.tar.gz
cd aircrack-ng-1.0-rc1
make
sudo make install
To use your card for aircracking we must put in these commands: (monitor mode)
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo ifconfig wlan0 up
run this command to test if your packet injection is working:
sudo aireplay-ng -9 wlan0
it should say Injection is working! and then a list of AP
Another way of setting the card in monitor mode: (Recommended) This way, you can monitor on mon0 while still being associated on wlan0.
- Install iw, for info go here
http://www.aircrack-ng.org/doku.php?id=mac80211#installing_iwsudo mkdir iw
cd iw
sudo wget http://dl.aircrack-ng.org/iw.tar.bz2
sudo tar xjf iw.tar.bz2
sudo make
sudo make install
- Instead of setting monitor mode on wlan0, create mon0 using
sudo airmon-ng start wlan0
and you can go here for more information
http://www.aircrack-ng.org/doku.php?id=airmon-ng- Test
sudo aireplay-ng -9 mon0
and see if injection works.
Edit /etc/modprobe.d/options, bysudo gedit /etc/modprobe.d/options
and add a new line containing "options b43 nohwcrypt=1" This ensures that the encryption on wlan0 doesn't interfere with monitoring. This should be only enabled when aircracking with mon0, as it increases the softmac overhead. Remove it from your blacklist when not using aircrack for a longer time.
This is a workaround for a known bug in b43.After that, use "mon0' for all moninjection tasks.
after that refer here on how to WEP crackhttp://www.aircrack-ng.org/doku.php?id=simple_wep_crackand here for WPA/WPA2http://www.aircrack-ng.org/doku.php?id=cracking_wpayou can control the injection speed with aireplay-ng -x 'number'
1024 is the max, 500 is the default pps I am injecting but the IVs don't increase!go here:
http://aircrack-ng.org/doku.php?id=i_am_injecting_but_the_ivs_don_t_increase*Comments, Sugestions or Problems make a post!and thats it
