讓RTL8187無線網卡在linux 2.6.28核心支援aircrack-ng注入。

來源:互聯網
上載者:User

 

本文使用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

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.