PDA

View Full Version : How do I get Nethunter to work with a wifi adapter?



Alex19842
2023-02-12, 18:03
Hello to all of you who came here!
I have a problem that I've been looking for a solution to for a long time.....
I have a Pocofone f1 phone with kernel 4.9.186-perf-g10af704. I have nethunter installed on it. I also have a Tp-Link TL-WN722N V2 wifi adapter. On my laptop with kali installed this adapter works great! But when I connect to nethunter it shows up in lsusb but does not show up in iwconfig. I realized that the problem is with the drivers, but I don't know how to put them on my phone.
I tried putting the Wireless Firmware for Nethunter module on Magisk but it didn't work:(
Thanks in advance to everyone who will respond and help me find a solution!

Fred Sheehan
2023-02-19, 02:36
Needs firmware and drivers I expect;

https://sstectutorials.net/how-to-use-tp-link-wn722n-v2-v3-on-kali-linux/

The only other issue I've seen is when a USB adapter has 2 modes and needs 'switching'

(fix wifi usb adapters with virtual ?CD? not showing up)

sudo apt install usb-modeswitch usb-modeswitch-data

lsusb

Bus 004 Device 002: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter

find your adapter in list, ID is 2 x 4 digit codes, these are the -v (vendor) and -p (product) ID codes, change -v {your device} and -p {device model} after the switch as the below;

sudo usb_modeswitch -K -W -v 0cf3 -p 9271 (realtek)

sudo usb_modeswitch -K -W -v 0e8d -p 7612 (comfast/mediatek)

Baka233
2024-02-04, 07:12
StandardEject=1
Look for default devices
found USB ID 1d6b: 0003
found USB ID obda:8176
vendor ID matched
product ID matched
found USB ID 1d6b : 0002
Found devices in default mode (1)
Access
device 002 on bus 001
Get the current device conf iguration ...
Current configuration number is 1
Use interface number 0
with class 255
Error :
can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort