Skip to content

Instantly share code, notes, and snippets.

@framlin
Created August 19, 2011 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save framlin/1156246 to your computer and use it in GitHub Desktop.
Save framlin/1156246 to your computer and use it in GitHub Desktop.
var pcap = require('pcap'),
tcp_tracker = new pcap.TCP_tracker(),
pcap_session = pcap.createSession('eth0', '');
tcp_tracker.on('http_request', function (session, http) {
console.log("Start of HTTP session between " + session.src_name + " and " + session.dst_name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment