As Nebster said, team 1306 has done this for a few years now.
Our scanning software (an integral part of CrowdScout) is open-source, viewable at
our GitHub repository. We'll be integrating it with our new improved version of CrowdScout soon.
If you have any questions, feel free to PM me.