I come from a linux background and recently acquired a mac. In linux I had a lot of scripts written in python that were used to do specific packet sniffing and capturing. Dedicated deauthentication packet capturing or other wireless probes. For that I would set my wireless adapter to monitor mode and either use scapy or the command
sniff = socket.socket(socket.AF_PACKET, socket.SOCK_RAW)
Sadly, I have discovered that this style of sniffing is not supported by OS X. I am aware of the airport command and the hidden wireless sniffer provided by apple, but their usage is very limited. I was looking for something I could use with my scripts.
I was wondering if anyone has figured a way around this issue. Is it possible to add this feature to languages like python and ruby?
If not, can a packet sniffer be coded in swift with the same functionalities?