Terminal Wi-Fi monitor for macOS. Puts the interface into monitor mode, hops channels, with support for WPA/WPA2 decryption.
See the code
Terminal Wi-Fi monitor for macOS. Puts the interface into monitor mode, hops channels, with support for WPA/WPA2 decryption.
[!NOTE] Currently in early development. Only been tested on Apple Silicon (M1) with Wi-Fi 5.
dumpcap the interface is in monitor mode and captures raw frames, which are piped into tshark (-T ek) to generate JSON, that is then fed into a background thread for the TUI to read off of.sudo.pip install airshark
Or clone from source and install in editable mode:
git clone https://github.com/Chiroyce1/airshark
cd airshark
pip install -e .
Credentials for decryption can come from the CLI or a .env file:
SSID="YourNetworkName"
PASSWORD="YourPassphrase"
CLI flags (-s/-k) can override .env.
# Monitor channel 6
airshark -i en0 -c 6
# Hop 2.4 GHz, 0.5 s per channel
airshark -i en0 --band 2.4 --dwell 0.5
# 5 GHz hop + live decryption
airshark -i en0 --band 5 -s HomeNet -k s3cr3t
Keybindings while running:
| Key | Action |
|---|---|
h | Toggle channel hopping off |
, / . | Previous / Next channel (when hopping) |
= / - | Increase / decrease channel dwell time |
q | Quit |
If SSIDs show as <Hidden> on macOS: Apple's privacy protections (TCC) classify Wi-Fi SSIDs as location data. If you install via pip, macOS may block the pip wrapper from reading SSIDs by redacting them.
python3 -m airshark
For reliable EAPOL capture (and subsequent WPA decryption), it is recommended to lock AirShark to the target AP's specific channel (e.g., airshark -c 60) rather than sweeping an entire band, or use the h keybind and select the channel using , and . keys.
The macOS CoreWLAN framework imposes hardware limitations that prevent the Wi-Fi radio from transparently hopping across different frequency bands. If attempted, the initial cross-band hop may succeed, but subsequent hops are silently ignored by the macOS Wi-Fi driver. Therefore, AirShark restricts channel hopping to a single band at a time (e.g., 2.4 GHz, 5 GHz, or 6 GHz).
Refer to this post on the Apple developer forums for additional technical context.
You can stream packets from AirShark to other tools like Wireshark using Unix named pipes.
Create the named pipe:
mkfifo /tmp/airshark.pipe
Start Wireshark reading from the pipe first:
wireshark -k -i /tmp/airshark.pipe &
Run AirShark and output to the pipe:
airshark --band 5 -o /tmp/airshark.pipe
capture:
-i IFACE, --interface Wireless interface (default: en0)
-I, --monitor Enable monitor mode (default: on)
-o FILE, --output Output PCAP file or named pipe (default: airshark_capture.pcap)
-c N, --channel Channel for single mode (default: 6)
--band BAND Band to sweep: single | 2.4 | 5 | 6
--dwell SECS Seconds per channel when hopping (default: 0.75)
decryption:
-s, -S, --ssid SSID Network SSID for WPA decryption
-k PASSPHRASE, --key WPA/WPA2 passphrase
2 commits
Python
100.0%
Terminal Wi-Fi monitor for macOS. Puts the interface into monitor mode, hops channels, with support for WPA/WPA2 decryption.
See the code
Terminal Wi-Fi monitor for macOS. Puts the interface into monitor mode, hops channels, with support for WPA/WPA2 decryption.
[!NOTE] Currently in early development. Only been tested on Apple Silicon (M1) with Wi-Fi 5.
dumpcap the interface is in monitor mode and captures raw frames, which are piped into tshark (-T ek) to generate JSON, that is then fed into a background thread for the TUI to read off of.sudo.pip install airshark
Or clone from source and install in editable mode:
git clone https://github.com/Chiroyce1/airshark
cd airshark
pip install -e .
Credentials for decryption can come from the CLI or a .env file:
SSID="YourNetworkName"
PASSWORD="YourPassphrase"
CLI flags (-s/-k) can override .env.
# Monitor channel 6
airshark -i en0 -c 6
# Hop 2.4 GHz, 0.5 s per channel
airshark -i en0 --band 2.4 --dwell 0.5
# 5 GHz hop + live decryption
airshark -i en0 --band 5 -s HomeNet -k s3cr3t
Keybindings while running:
| Key | Action |
|---|---|
h | Toggle channel hopping off |
, / . | Previous / Next channel (when hopping) |
= / - | Increase / decrease channel dwell time |
q | Quit |
If SSIDs show as <Hidden> on macOS: Apple's privacy protections (TCC) classify Wi-Fi SSIDs as location data. If you install via pip, macOS may block the pip wrapper from reading SSIDs by redacting them.
python3 -m airshark
For reliable EAPOL capture (and subsequent WPA decryption), it is recommended to lock AirShark to the target AP's specific channel (e.g., airshark -c 60) rather than sweeping an entire band, or use the h keybind and select the channel using , and . keys.
The macOS CoreWLAN framework imposes hardware limitations that prevent the Wi-Fi radio from transparently hopping across different frequency bands. If attempted, the initial cross-band hop may succeed, but subsequent hops are silently ignored by the macOS Wi-Fi driver. Therefore, AirShark restricts channel hopping to a single band at a time (e.g., 2.4 GHz, 5 GHz, or 6 GHz).
Refer to this post on the Apple developer forums for additional technical context.
You can stream packets from AirShark to other tools like Wireshark using Unix named pipes.
Create the named pipe:
mkfifo /tmp/airshark.pipe
Start Wireshark reading from the pipe first:
wireshark -k -i /tmp/airshark.pipe &
Run AirShark and output to the pipe:
airshark --band 5 -o /tmp/airshark.pipe
capture:
-i IFACE, --interface Wireless interface (default: en0)
-I, --monitor Enable monitor mode (default: on)
-o FILE, --output Output PCAP file or named pipe (default: airshark_capture.pcap)
-c N, --channel Channel for single mode (default: 6)
--band BAND Band to sweep: single | 2.4 | 5 | 6
--dwell SECS Seconds per channel when hopping (default: 0.75)
decryption:
-s, -S, --ssid SSID Network SSID for WPA decryption
-k PASSPHRASE, --key WPA/WPA2 passphrase
2 commits
Python
100.0%