Wifi

usb wifi適配器問題

  • March 16, 2020

我有一個 USB wifi 適配器(Edimax EW-7612UAn V2),它的驅動程序安裝在我的 parrot 系統上,我的電腦的 pci 與 parrot 不兼容。問題是 parrot 說當我使用普通 wifi 和使用 airmon 時兩個適配器都被禁用-ng usb wifi 適配器執行良好,而電腦的 pci 當然不能執行。當將我的 pci 置於監視器並將我的 USB wifi 適配器置於託管模式時,網路管理器會從 wifi 菜單中刪除它們,儘管 USB 適配器未處於監視器模式。

換句話說,如果主 pci 不兼容或無法辨識,parrot 將無法辨識這兩個適配器。那麼,我應該怎麼做才能強制鸚鵡只使用 USB wifi 適配器?

lsusb -v 結果:

Bus 002 Device 003: ID 7392:7822 Edimax Technology Co., Ltd 802.11n WLAN Adapter
Couldn't open device, some information will be missing
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0 
 bDeviceSubClass         0 
 bDeviceProtocol         0 
 bMaxPacketSize0        64
 idVendor           0x7392 Edimax Technology Co., Ltd
 idProduct          0x7822 
 bcdDevice            2.00
 iManufacturer           1 
 iProduct                2 
 iSerial                 3 
 bNumConfigurations      1
 Configuration Descriptor:
   bLength                 9
   bDescriptorType         2
   wTotalLength       0x002e
   bNumInterfaces          1
   bConfigurationValue     1
   iConfiguration          0 
   bmAttributes         0x80
     (Bus Powered)
   MaxPower              500mA
   Interface Descriptor:
     bLength                 9
     bDescriptorType         4
     bInterfaceNumber        0
     bAlternateSetting       0
     bNumEndpoints           4
     bInterfaceClass       255 Vendor Specific Class
     bInterfaceSubClass    255 Vendor Specific Subclass
     bInterfaceProtocol    255 Vendor Specific Protocol
     iInterface              0 
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x81  EP 1 IN
       bmAttributes            2
         Transfer Type            Bulk
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0200  1x 512 bytes
       bInterval               0
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x02  EP 2 OUT
       bmAttributes            2
         Transfer Type            Bulk
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0200  1x 512 bytes
       bInterval               0
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x03  EP 3 OUT
       bmAttributes            2
         Transfer Type            Bulk
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0200  1x 512 bytes
       bInterval               0
     Endpoint Descriptor:
       bLength                 7
       bDescriptorType         5
       bEndpointAddress     0x84  EP 4 IN
       bmAttributes            3
         Transfer Type            Interrupt
         Synch Type               None
         Usage Type               Data
       wMaxPacketSize     0x0040  1x 64 bytes
       bInterval               1

網路管理員截圖

網路管理員截圖

rf-kill 的結果:

0: hp-wifi: Wireless LAN
   Soft blocked: no
   Hard blocked: yes
1: hp-bluetooth: Bluetooth
   Soft blocked: no
   Hard blocked: yes
2: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
3: phy1: Wireless LAN
   Soft blocked: no
   Hard blocked: yes

ifconfig 的結果:

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
       ether 34:64:a9:73:43:20  txqueuelen 1000  (Ethernet)
       RX packets 0  bytes 0 (0.0 B)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 0  bytes 0 (0.0 B)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
       inet 127.0.0.1  netmask 255.0.0.0
       inet6 ::1  prefixlen 128  scopeid 0x10<host>
       loop  txqueuelen 1000  (Local Loopback)
       RX packets 8  bytes 396 (396.0 B)
       RX errors 0  dropped 0  overruns 0  frame 0
       TX packets 8  bytes 396 (396.0 B)
       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

我找到了答案。在這裡使用指令,我發現我的 pci 使用“rt2800pci”。我使用以下命令解除安裝了模組:

modprobe -r rt2800pci

它執行良好,usb wifi 適配器開始工作,但此解決方案僅適用於一個會話,一旦電腦重新啟動,您將不得不再次解除安裝模組,如果您希望模組一直被解除安裝,您可以將模組列入黑名單。

引用自:https://unix.stackexchange.com/questions/571578