Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: “station monitor” mode when using monitor=True #1453

Closed
gpotter2 opened this issue May 29, 2018 · 2 comments
Closed

OSX: “station monitor” mode when using monitor=True #1453

gpotter2 opened this issue May 29, 2018 · 2 comments
Assignees

Comments

@gpotter2
Copy link
Member

gpotter2 commented May 29, 2018

According to
calebmadrigal/trackerjacker#5 (comment)

The way we start monitor mode under OSX sets the interface into a weird pseudo-locked mode

In one terminal:

>>> import scapy.all as scapy
>>> scapy.sniff(iface='en0', prn=lambda p: p.summary(), monitor=True)

In another terminal (after running the above):

$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
     agrCtlRSSI: -62
     agrExtRSSI: 0
    agrCtlNoise: -93
    agrExtNoise: 0
          state: running
        op mode: station monitor
     lastTxRate: 216
        maxRate: 400
lastAssocStatus: 0
    802.11 auth: open
      link auth: none
          BSSID: 82:2a:a8:55:71:15
           SSID: colectivo
            MCS: 5
        channel: 157,1

As you can see, the op mode is station monitor. And when I try switching to a different channel, it doesn't work

@gpotter2 gpotter2 assigned gpotter2 and guedou and unassigned gpotter2 May 30, 2018
@gpotter2
Copy link
Member Author

Calling @guedou for OSX

@guedou
Copy link
Member

guedou commented Jun 15, 2019

Sorry for the looong delay. I do not boot macOS often ...

This behavior is expected that the station monitor mode is used to sniff raw 802.11 frames. Sniffing with tcpdump -I does exactly the same. When sniff() stops the mode goes back station.

@guedou guedou closed this as completed Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants