Skip to content

Instantly share code, notes, and snippets.

@jchaney
jchaney / fb_chat_sniffer.js
Created January 31, 2011 09:30
Facebook Chat Sniffer using Node.JS + node_pcap
var pcap = require('pcap'), // npm install pcap
tcp_tracker = new pcap.TCP_tracker(),
pcap_session = pcap.createSession('en1'); // Change to your interface
pcap_session.on('packet', function (raw_packet) {
var packet = pcap.decode.packet(raw_packet);
tcp_tracker.track_packet(packet);
});
tcp_tracker.on('http response body', function(session, http, data) {

Keybase proof

I hereby claim:

  • I am jchaney on github.
  • I am jchaney (https://keybase.io/jchaney) on keybase.
  • I have a public key ASDQf-AYosZlVpZ0zmTnLlAIK70_fhGNcPw3FPQ73TH2Swo

To claim this, I am signing this object: