OpenWrt Forum Archive

Topic: How can I set it to monitor mode?

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I try to change config Managed Mode to Monitor Mode

I use Linux OpenWrt 3.18.29 - BusyBox v1.23.2

The following is my wireless configuration
|------------------------------
|config wifi-device  radio0
|        option type     ralink
|        option ht       20
|
|config wifi-iface
|        option device   radio0
|        option network  lan
|        option mode monitor
|        option hidden 1
|------------------------------

The following is my network configuration
|-------------------------------------
|config interface 'loopback'
|        option ifname 'lo'
|        option proto 'static'
|        option ipaddr '127.0.0.1'
|        option netmask '255.0.0.0'
|
|config globals 'globals'
|        option ula_prefix ''
|
|config interface 'lan'
|        option ifname 'eth0.1'
|        option force_link '1'
|        option macaddr ''
|        option type 'bridge'
|        option proto 'static'
|        option ipaddr '192.168.8.1'
|        option netmask '255.255.255.0'
|
|config interface 'wan'
|        option ifname 'radio0'
|        option force_link '1'
|        option macaddr ''
|        option proto 'dhcp'
|--------------------------------------

when i use 'iw reg get', i can see the changed mode
|------------------------------------------------------------------
|root@OpenWrt:/etc/config# iw reg get
|global
|country 00: DFS-UNSET
|        (2402 - 2472 @ 40), (6, 20), (N/A)
|        (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
|        (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
|        (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
|        (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
|        (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
|------------------------------------------------------------------

but, when i use 'iwconfig', it was not changed
|-------------------------------------------------
|ra0       RTWIFI SoftAP  ESSID:"WRTnode1A7C"
|          Mode:Managed  Channel=11  Access Point:
|-------------------------------------------------

How can I set it to monitor mode?

You can use aircrack-ng, I'm using it and it workes great

thx for ur help :-)

i try to use aircrack-ng

i followed this page
( http://www.ibuyopenwrt.com/index.php/8- … ircrack-ng )

but i hv a problem, command failed no such device (-19) .

The process:
-opkg update
-opkg install aircrack-ng
-iw ra0 info ---> command failed no such device (-19)
(I dont know what to do)

-airmon-ng start ra0  1
[ (monitor mode enabled on mon0) ] --> i can see this message

-iwconfig
RTWIFI SoftAP  ESSID:"WRTnode1A7C"
          [Mode:Managed]  Channel=9  Access Point: 64:51:7E:80:1A:7C
          Bit Rate=144 Mb/s ---> Mode is not changed

-airodump-ng mon0
ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead.  Make
sure RFMON is enabled: run 'airmon-ng start ra0 <#>'
Sysfs injection support was not found either.

what can i do??

"ra0" points to proprietary mediatek driver, it's not an open cfg80211 compatible driver (should be "wlan0" in single ap mode)
monitor mode for proprietary driver have to be enabled and used by the different way and im not sure it's compatible with aitcrack-ng

The discussion might have continued from here.