Aircrack-ng forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Aircrack-ng 1.7 release

Sorry Guest, you are banned from posting and sending personal messages on this forum.
This ban is not set to expire.
Pages: [1]   Go Down

Author Topic: How can I set it to monitor mode?  (Read 4638 times)

carryrain

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
How can I set it to monitor mode?
« on: July 12, 2016, 02:05:53 am »

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??
« Last Edit: July 12, 2016, 02:12:50 am by carryrain »
Logged

carryrain

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: How can I set it to monitor mode?
« Reply #1 on: July 12, 2016, 02:08:15 am »

help me plz
Logged

misterx

  • Aircrack-ng Author
  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1955
  • Aircrack-ng Author
    • Aircrack-ng
Re: How can I set it to monitor mode?
« Reply #2 on: July 13, 2016, 12:06:40 am »

When you got command failed no such device (-19), what device did you use? ra0? As it says, it doesn't exist.

Find the one that exists and use airmon-ng on it instead.

Don't follow blindly stuff from the web.

Anyway, for any further question, make sure to read the docs since openwrt is linux, so everything in the wiki applies to it too.
Logged

carryrain

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: How can I set it to monitor mode?
« Reply #3 on: July 13, 2016, 04:42:56 am »

The following is my configuration and typing when I used in past

root@OpenWrt:/# vi /etc/config/wireless

config wifi-device  ra0
        option type     ralink
        option mode     9
        option channel  auto
        option txpower 100
        option ht       20
        option country KR

# REMOVE THIS LINE TO ENABLE WIFI:
        option disabled 0

config wifi-iface
        option device   ra0
        option network  lan
#       option mode     ap
        option mode monitor
        option ssid     WyPLUG1A7C
        option encryption none
        option key wyplugCE4E!
#   option ApCliEnable '1'
#   option ApCliAuthMode 'NONE'
#   option ApCliEncrypType 'NONE'
#       option ApCliEnable '1'
#       option ApCliAuthMode 'WPA2PSK'
#       option ApCliEncrypType 'AES'
#       option ApCliPassWord ''
#       option ApCliSsid ''
--------------------------------------------------------------

root@OpenWrt:/# cat /etc/config/network

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 'fdfb:1297:6503::/48'

config interface 'lan'
        option ifname 'eth0.1'
        option force_link '1'
        option macaddr '64:51:7e:80:1a:7c'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.8.1'
        option netmask '255.255.255.0'

config interface 'wan'
        option ifname 'apcli0'
#       option force_link '1'
#       option macaddr '64:51:7e:80:1a:7d'
        option proto 'dhcp'

config interface 'wwan'
        option ifname 'apcli0'
        option proto 'dhcp'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 2 3 4 6t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0 6t'
--------------------------------------------------------------
root@OpenWrt:/# ifconfig

apcli0    Link encap:Ethernet  HWaddr --:--:--:--:--:--( i concealed )
          inet6 addr: fe80::c:43ff:fe76:2058/64 Scope:Link

br-lan    Link encap:Ethernet  HWaddr --:--:--:--:--:--
          inet addr:192.168.8.1  Bcast:192.168.8.255  Mask:255.255.255.0

eth0      Link encap:Ethernet  HWaddr --:--:--:--:--:--
          inet6 addr: fe80::6651:7eff:fe80:1a7c/64 Scope:Link

eth0.1    Link encap:Ethernet  HWaddr --:--:--:--:--:--
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0

ra0       Link encap:Ethernet  HWaddr --:--:--:--:--:--
          inet6 addr: fe80::20c:43ff:fe76:2058/64 Scope:Link
--------------------------------------------------------------
root@OpenWrt:/# ifconfig ra0 down
      br-lan: port 2(ra0) entered disabled state

root@OpenWrt:/# iwconfig ra0 mode monitor
      Error for wireless request "Set Mode" (8B06) :
          SET failed on device ra0 ; Operation not supported.

root@OpenWrt:/# ifconfig apcli0 down
root@OpenWrt:/# iwconfig apcli0 mode monitor
      Error for wireless request "Set Mode" (8B06) :
          SET failed on device apcli0 ; Network is down.
--------------------------------------------------------------
root@OpenWrt:/# iwconfig

wds1      RTWIFI SoftAP  ESSID:""
          Mode:Managed  Channel=9  Access Point: Not-Associated
          Bit Rate:144 Mb/s

eth0.1    no wireless extensions.

lo        no wireless extensions.

wds0      RTWIFI SoftAP  ESSID:"WyPLUG1A7C"
          Mode:Managed  Channel=9  Access Point: 00:0C:43:76:20:58
          Bit Rate=144 Mb/s

ra0       RTWIFI SoftAP  ESSID:"WyPLUG1A7C"
          Mode:Managed  Channel=9  Access Point: 00:0C:43:76:20:58
          Bit Rate=144 Mb/s

eth0      no wireless extensions.

wds3      RTWIFI SoftAP  ESSID:""
          Mode:Managed  Channel=9  Access Point: Not-Associated
          Bit Rate:144 Mb/s

apcli0    RTWIFI SoftAP  ESSID:"wapeul"
          Mode:Managed  Channel=9  Access Point: 64:E5:99:BB:F1:7A
          Bit Rate=144 Mb/s

br-lan    no wireless extensions.

wds2      RTWIFI SoftAP  ESSID:""
          Mode:Managed  Channel=9  Access Point: Not-Associated
          Bit Rate:144 Mb/s

(u said use others like wds0~3 and apcli0, not ra0. I will try it)
--------------------------------------------------------------

root@OpenWrt:/# 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
--------------------------------------------------------------

root@OpenWrt:/# iwconfig ra0 mode monitor
Error for wireless request "Set Mode" (8B06) :
    SET failed on device ra0 ; Operation not supported.
--------------------------------------------------------------

root@OpenWrt:/# airmon-ng start ra0
ps: invalid option -- A
BusyBox v1.23.2 (2016-07-11 19:12:30 KST) multi-call binary.

Usage: ps

Show list of processes

        w       Wide output



Interface       Chipset         Driver

wds1            Ralink 2560 PCI rt2500
wds0            Ralink 2560 PCI rt2500
ra0             Ralink 2560 PCI rt2500 (monitor mode enabled)
wds3            Ralink 2560 PCI rt2500
apcli0          Ralink 2560 PCI rt2500
wds2            Ralink 2560 PCI rt2500

==> it looks like monitoring in interface ra0



root@OpenWrt:/# airmon-ng start ra0 1
   ps: invalid option -- A
   BusyBox v1.23.2 (2016-07-11 19:12:30 KST) multi-call binary.

Usage: ps

Show list of processes

        w       Wide output



Interface       Chipset         Driver

wds1            Ralink 2560 PCI rt2500
wds0            Ralink 2560 PCI rt2500
ra0             Ralink 2560 PCI rt2500 (monitor mode enabled)
wds3            Ralink 2560 PCI rt2500
apcli0          Ralink 2560 PCI rt2500
wds2            Ralink 2560 PCI rt2500
--------------------------------------------------------------

root@OpenWrt:/# airodump-ng ra0
ioctl(SIOCSIWMODE) failed: Operation not supported

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.
Logged

misterx

  • Aircrack-ng Author
  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1955
  • Aircrack-ng Author
    • Aircrack-ng
Re: How can I set it to monitor mode?
« Reply #4 on: July 13, 2016, 11:51:36 pm »

Update OpenWrt. I was told a few days ago that airmon-ng works fine with 15.05.1. They updated procps to procps-ng which solved that exact issue IIRC.
Logged
Pages: [1]   Go Up