本文使用Gentoo Linux,核心已升級到目前最新版本號碼如下
crob@crob ~ $ uname -a
Linux crob 2.6.28-gentoo #34 SMP Wed Jan 14 17:00:22 CST 2009 i686 Intel(R) Core(TM)2 Duo CPU T5470 @ 1.60GHz GenuineIntel GNU/Linux
一、配置核心,選中核心中對rtl8187的支援,編譯成模組
Device Drivers --->
Network device support --->
Wireless LAN --->
[*] Wireless LAN (IEEE 802.11)
<M> Realtek 8187 and 8187B USB support
二、下載核心補丁,使rtl8187支援injection(注入模式)
wget http://astray.fragstore.net/apps/mac80211_2.6.28-rc8-wl_frag+ack_radiotap_2.6.28_mod.patch
wget http://astray.fragstore.net/apps/rtl8187-mac80211-pwr.patch
1、將以上兩檔案複製到核心原始碼目錄(一般是/usr/src/linux)
2、執行以下命令,檢查補丁是否有問題
patch -Np1 --dry-run -i rtl8187-mac80211-injection-speed-2.6.28-rc6.patch
patch -Np1 --dry-run -i rtl8187-mac80211-pwr.patch
3、如果第2步無錯誤則將--dry-run去掉後,再次執行
4、重新編譯、安裝核心模組
make clean && make && make modules_install
copy arch/i386/boot/bzImage /boot/核心檔案名稱
5、重啟
註:如果是2.6.28以前版本的核心可能還需要打上以下補丁,步驟相同(附錄1的貼子裡老外說2.6.28核心不用打這個補丁了)
wget http://trac.aircrack-ng.org/export/1330/trunk/patches/rtl8187-mac80211-injection-speed-2.6.28-rc6.patch:
OK!現在你的RTL8187可以支援注入,aircrack-ng no problems !
附錄:
1、
Kernel 2.6.28 update patched for EXT4 CD upgrade.
http://forums.remote-exploit.org/showthread.php?t=19221&highlight=rtl8187
Well, as a sidenote: generally the patches for mac80211 used in my
tutorial are generic 2.6.28 fragmentation/ack patches, so they could be
used for this 2.6.28 update CD. The only true ALFA related patches are
rtl8187-mac80211-injection-speed-2.6.28-rc6.patch and
rtl8187-mac80211-pwr.patch, which aren't NECESSARY, but useful.
2、ALFA AWUS036H (rtl8187) and linux kernel 2.6.28 - the ultimate ALFA driver
http://forums.remote-exploit.org/showthread.php?t=19350&highlight=rtl8187