Skip to content

Instantly share code, notes, and snippets.

@pulsar256
Last active February 6, 2018 20:22
Show Gist options
  • Save pulsar256/8908820 to your computer and use it in GitHub Desktop.
Save pulsar256/8908820 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