Last active
February 6, 2018 20:22
-
-
Save pulsar256/8908820 to your computer and use it in GitHub Desktop.
wifi probe request monitoring in node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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