Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save openube/7554a98608ec043b772a53b6b86d229e to your computer and use it in GitHub Desktop.
Save openube/7554a98608ec043b772a53b6b86d229e to your computer and use it in GitHub Desktop.
wifi probe request monitoring in node.js
var pcap=require('pcap');
pcap.createSession("mon0", '(type mgt) and (type mgt subtype probe-req )').
on('packet', function (raw_packet) {
with(pcap.decode.packet(raw_packet).link.ieee802_11Frame)
if (type == 0 && subType == 4)
console.log("Probe request",shost, "-> ",bssid);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment