seemoo-lab / owl

An open Apple Wireless Direct Link (AWDL) implementation written in C
https://owlink.org
GNU General Public License v3.0
1.25k stars 87 forks source link

Could not put device in monitor mode #86

Open ibexnet opened 1 year ago

ibexnet commented 1 year ago

HI, I try to use owl with an wifi card that I know support monitor mode. Below the commands used:

# iw phy `iw dev wlan0 info | gawk '/wiphy/ {printf "phy" $2}'` interface add mon0 type monitor
# iw mon0 info
Interface mon0
        ifindex 11
        wdev 0x100000004
        addr 00:e0:4c:4b:bb:76
        type monitor
        wiphy 1
        txpower 20.00 dBm
#
# owl -i mon0
--omitted output --
14:40:16 ERROR: Error while receiving via netlink: Operation not supported
14:40:16 ERROR: Could not put device in monitor mode: mon0
14:40:16 ERROR: could not initialize core

I used this interface with various kali tools and the monitor mode work:

# aireplay-ng --test mon0
14:40:54  Trying broadcast probe requests...
14:40:55  Injection is working!
14:40:56  Found 1 AP 

14:40:56  Trying directed probe requests...
14:40:56  AB:CD:EF:12:34:56 - channel: 11 - '****'
14:41:02  Ping (min/avg/max): 8.359ms/75.606ms/142.687ms Power: -94.75
14:41:02   4/30:  13%
MarkusTieger commented 6 months ago

Does your wifi card support "active monitor mode" ? The way i set my card into monitor mode:

JanBdf commented 5 months ago

This is probably a bit late at this point but I will comment on it anyways for others experiencing the same issue. As far as I know you have to use -N with owl here to tell it that the device is already in monitor mode. Otherwise owl tries to change the mode from monitor to monitor which doesn't work. My source is this tutorial on how to use owl on an RPi 3