Network¶
List available wifi networks¶
airport -s
Join a wifi network¶
networksetup -setairportnetwork en0 SSID PASSWORD
Wifi monitor mode¶
Monitor all traffic on channel 1
airport en0 sniff 1
Turn wifi off¶
networksetup -setairportpower en0 off
View bluetooth information¶
system_profiler SPBluetoothDataType
List active network connections¶
And the corresponding processes
lsof -i