I would like to know if anyone has any idea of how to access live wi-fi raw data from my computer (in monitor and promicuous mode). I would like to develop a code to get the MAC address of every device around me, including cellphones that are not connected to any network (I know every smartphone sends wi-fi signal when they're on). Since I've discovered that the latest versions of MacBooks can use the wi-fi board in monitor and promicuous mode, I'm trying to access it's raw data. I don't even know if it's possible with Mathematica (but if it is, it would be perfect to handle the data the way I want).
If you know whether and how it could be done, please help me. If it can't be done in Mathematica, could you indicate a programming language that allows to access this kind of data?
I'm asking this here because i've done some tests in Wireshark and was able to get the MAC address of my own iPhone when I turned the wi-fi on. The problem is that I can only capture a lot of data and analyse it AFTERWARDS. I would like to analyse the wi-fi data as soon as it's been captured.
I've searched about it on internet and even how to do that with arduino, but without any luck.
Thanks for your help in advance!
Thanks to rm -rf I'm able to get information from my wifi and display in Mathematica. The next step is sniff all wifi devices (more precisely smartphones) that are on. The important part is that they must not be necessarily connected to any network!
I found the command "airport sniff [channel]" that can be used from Terminal. It creates a temporary .cap file in the /tmp folder, but i'm not able to read it. I'm not quite sure if it's the right path.
I would be glad if someone could help me a little bit further here =]