Dear Moderator,
While working on airmon-ng when the situation has come to set wlan0 on monitor mode
Identification Wlan0
HTML Code:
root@kali:~# iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
eth0 no wireless extensions.
Initial Wlan0 Network Card Identification and its STATUS
HTML Code:
root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.43.163 netmask 255.255.255.0 broadcast 192.168.43.255
inet6 fe80::a00:27ff:fe27:6d4 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:27:06:d4 txqueuelen 1000 (Ethernet)
RX packets 80 bytes 7062 (6.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 2256 (2.2 KiB)
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 1 (Local Loopback)
RX packets 18 bytes 1058 (1.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 1058 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 7c:dd:90:a3:fd:28 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
Device Identification
HTML Code:
root@kali:~# lsusb
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Device Driver for USB Ralink Wireless Card
HTML Code:
root@kali:~# dmesg
[ 5.446494] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.446497] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.446498] usb usb1: Product: EHCI Host Controller
[ 5.446500] usb usb1: Manufacturer: Linux 4.6.0-kali1-amd64 ehci_hcd
[ 5.446501] usb usb1: SerialNumber: 0000:00:0b.0
Rfkill list
HTML Code:
root@kali:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
USB Wireless Module Library
HTML Code:
root@kali:~# modinfo rt2800usb
filename: /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko
license: GPL
firmware: rt2870.bin
description: Ralink RT2800 USB Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: CBEC1FB408E4AA287386D68
When starting wlan0 in a monitor mode using airmon-ng
HTML Code:
root@kali:~# airmon-ng start wlan0
PHY Interface Driver Chipset
phy0 wlan0 rt2800usb Ralink Technology, Corp. RT5370
Failed to set wlan0mon up using ip
(mac80211 monitor mode vif enabled for [phy0]wlan0 on [phy0]wlan0mon)
(mac80211 station mode vif disabled for [phy0]wlan0)
When using airodump-ng the wlan0 Fails
HTML Code:
root@kali:~# airodump-ng wlan0mon
ioctl(SIOCSIFFLAGS) failed: Device or resource busy
Then Stopped the airmon-ng
HTML Code:
root@kali:~# airmon-ng stop wlan0mon
PHY Interface Driver Chipset
phy0 wlan0 rt2800usb Ralink Technology, Corp. RT5370
When checked the status wlan0 using ifconfig, wlan0 dint shown up.
HTML Code:
root@kali:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a00:27ff:fe27:6d4 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:27:06:d4 txqueuelen 1000 (Ethernet)
RX packets 273 bytes 20151 (19.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 2256 (2.2 KiB)
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 1 (Local Loopback)
RX packets 34 bytes 2018 (1.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 34 bytes 2018 (1.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 7c:dd:90:a3:fd:29 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
When tried to bring wlan0 UP, it got failed and message is the same as airodump-ng .
HTML Code:
root@kali:~# ifconfig wlan0 up
SIOCSIFFLAGS: Device or resource busy
Some more INFO
HTML Code:
root@kali:~# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 2258 38 0 0 0 0 0 0 2258 38 0 0 0 0 0 0
wlan0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
eth0: 48726 583 0 0 0 0 0 1 2256 25 0 0 0 0 0 0
Can someone explains why wlan0 is not coming up, tried all my best to bring this up. Any ideas and suggestions are highly appreciated.
TIA