私のラップトップのワイヤレスカードではALFA-AWUS036NHAを使用できません。

私のラップトップのワイヤレスカードではALFA-AWUS036NHAを使用できません。

私は最近ALFA-AWUS03NHAワイヤレスカードを購入し、Debianを実行しており、aircrack-ngツールバーでカードを使用したいと思います。しかし、いくつかの理由で私のラップトップのワイヤレスカードを使用していると確信しています。 ALFAカードのインジケーターは点滅せず、コマンドを実行してカードを抜くと何の違いもありません。

このカードのドライバについて調べた結果、「ath_9k」という一部のダウンロードに含まれているAR9271ドライバを使用すると考えられます。しかし、これはすでにインストールされていると思います。少なくともlsmodを実行すると、ドライバが表示されます。

カードを挿入する前に、次のコマンドを実行してください。

~$ sudo iwconfig
[sudo] password for root: 
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"..."  
          Mode:Managed  Frequency:2.412 GHz  Access Point: "MA:CA:DD:RE:SS"   
          Bit Rate=54 Mb/s   Tx-Power=16 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=56/70  Signal level=-54 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:53   Missed beacon:0

~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr "mac_address"  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:"ip address" Mask:255.0.0.0
          inet6 addr: "..." Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:166 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:29969 (29.2 KiB)  TX bytes:29969 (29.2 KiB)

wlan0     Link encap:Ethernet  HWaddr "..."  
          inet addr: "..."  Bcast: "..."  Mask:255.255.240.0
          inet6 addr: "..." Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8272 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5897 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10531170 (10.0 MiB)  TX bytes:766102 (748.1 KiB)

    ~$ lsmod | grep ath
ath9k                  98430  0 
ath9k_common           12634  1 ath9k
ath9k_hw              391009  2 ath9k_common,ath9k
ath                    26026  3 ath9k_common,ath9k,ath9k_hw
mac80211              488308  1 ath9k
cfg80211              436618  3 ath,ath9k,mac80211

スペースを節約するために、識別可能なネットワーク情報やアドレスなどの一部の項目とlsmodの多くの項目を省略し、ath9kを含むすべての項目を含めました。

次に、カードを挿入して次のコマンドを実行します。

~$ lsusb
Bus 002 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 002 Device 003: ID 062a:4102 Creative Labs 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b1d6 Chicony Electronics Co., Ltd 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ドライバ番号(ドライバ番号ですか、それともチップセット番号ですか?違いはありますか?):9271。

~$ sudo iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"..."  
          Mode:Managed  Frequency:2.412 GHz  Access Point: "..."  
          Bit Rate=54 Mb/s   Tx-Power=16 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=56/70  Signal level=-54 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:59   Missed beacon:0

~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr "..." 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:"..."  Mask:255.0.0.0
          inet6 addr: "..." Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:33921 (33.1 KiB)  TX bytes:33921 (33.1 KiB)

wlan0     Link encap:Ethernet  HWaddr "..."  
          inet addr:"..."  Bcast:"..."  Mask:255.255.240.0
          inet6 addr: "..." Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10338 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7222 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13177945 (12.5 MiB)  TX bytes:1030820 (1006.6 KiB)

if / iwconfigを実行すると、カードがあるかどうかにかかわらず、ほぼ同じ出力が返されるようです。

~$ sudo airmon-ng start wlan0


Found 3 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them!
-e 
PID Name
2675    NetworkManager
2847    wpa_supplicant
3886    dhclient
Process with PID 3886 (dhclient) is running on interface wlan0


Interface   Chipset     Driver

wlan0       Atheros AR9285  ath9k - [phy0]
                (monitor mode enabled on mon0)

最初に注目すべき点は、ワイヤレスカードに記載されているものとは異なるチップセット/ドライバであるAR9285です。カードを接続すると、アクセス可能なワイヤレスインターフェイスwlan0が見えるようです。どうすればいいですか?古いインターフェイスの上に新しいインターフェイスwlan1がありますか、またはワイヤレスカードが別のインターフェイスを上書きして新しいwlan0になる必要がありますか?

カードを挿入した状態で以前と同じlsmodコマンドを実行すると、「usbcore」セクションに新しいドライバが表示されます。

~$ lsmod | grep ath
ath9k_htc              64602  0 
ath9k                  98430  0 
ath9k_common           12634  2 ath9k,ath9k_htc
ath9k_hw              391009  3 ath9k_common,ath9k,ath9k_htc
ath                    26026  4 ath9k_common,ath9k,ath9k_htc,ath9k_hw
mac80211              488308  2 ath9k,ath9k_htc
cfg80211              436618  4 ath,ath9k,mac80211,ath9k_htc
usbcore               166472  5 uvcvideo,ehci_hcd,ehci_pci,usbhid,ath9k_htc

私はこれらのことがまったく起こらないと確信していますが、むしろワイヤレスカードはまったく使用されていません。何の効果もなくプラグを抜くことができ、設定のどの時点でも点滅しないのでこれを確信します。実行コマンド。

さて、ここで問題が発生します!

カードに合ったドライバをインストールしましたか?では、なぜ動作しないのですか?私が見たすべてのビデオやチュートリアルでは、Alphaがプラグアンドプレイ方式であると仮定します。ここでいくつかのステップがありませんか?

ベストアンサー1

Debian 9 でこの問題を解決するには、次のリポジトリを次に追加します/etc/apt/sources.list

deb http://httpredir.debian.org/debian/ stretch main contrib non-free

その後、適切なドライバをインストールします。

apt update; apt-get install firmware-misc-nonfree

今うまくいきます:

root@debian:~# wpa_supplicant -i wlx00xx -c wpa_supplicant.conf -D wext
Successfully initialized wpa_supplicant
wlx00xx: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlx00xx: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='TestWiFi' freq=5640 MHz)
wlx00xx: Association request to the driver failed
wlx00xx: Associated with xx:xx:xx:xx:xx:xx
wlx00xx: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlx00xx: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]

これで要求IPを使用できるようになりますdhclient wlx00xx

おすすめ記事