the first and really better benefit of Backtrack 4 is
how to patch wireless drivers for RT8187 chipset wifi cards to inject in Backtrack 4 beta this how to was done at late night it was too late if some spelling mistakes can be
today just i was playing with Backtrack 4 beta ,then i tried to check that if my wireless cardwas able to inject for testing WEP ,i tried with the default drivers in Bt4 but it was not working and unable to inject using its default drivers, so then i took few minutes to patch the injection drivers and thaught to make small how to so that it will be easy for others
1)ifconfig wlan0 down
2)rmmod r8187 rtl8187 2>/dev/null
3)wget
http://dl.aircrack-ng.org/drivers/rtl8187_linux_26.1010.zip4)unzip rtl8187_linux_26.1010.zip
5)cd rtl8187_linux_26.1010.0622.2006/
6)wget
http://patches.aircrack-ng.org/rtl8187_2.6.27.patch7)tar xzf drv.tar.gz
8)tar xzf stack.tar.gz
9)patch -Np1 -i rtl8187_2.6.27.patch
10)make
here when running make command if u get compiling erros like below
“asm/semaphore.h: No such file or directory” compile error message (this is bcz of kernel mismatch for this drivers so for this u should edit the r8187.h
nano rtl8187_linux_26.1010.0622.2006/beta-8187/r8187.h
go to lien 46,47
! see for
#include <asm/io.h>
#include <asm/semaphore.h>
and overwrite lines 46,47 to this….
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
#include <asm/io.h>
#include <asm/semaphore.h>
#else
#include <linux/io.h>
#include <linux/semaphore.h>
#endifafter saving run make command now
11)make install
now reboot the system and type
12)iwconfig then u will see wlan0 has ur interface
13)airmon-ng start wlan0 (for monitor mode)
14)aireplay-ng -9 wlan0 (testing if ur card is injection or no)
the result should look this
4:15:20 Trying broadcast probe requests…
14:15:20 Injection is working!
14:15:21 Found 1 AP
14:15:21 Trying directed probe requests…
14:15:21 00:1C:13:156:55:99 - channel: 11 - ‘linksys’
14:15:25 Ping (min/avg/max): 3.907ms/108.614ms/160.149ms Power: 8.13
14:15:25 30/30: 100%
done