PHP Sniffer


In an effort to show that PHP really is the right tool for every programmnig task imaginable (humor, laugh), I submit for your amusement, phpsniffer.

phpsniffer is a packet sniffer written entirely in PHP without any PECL/PEAR extensions.

phpsniffer has some limitations:

  1. You probably will only see one side of a conversation.
  2. You might miss packets with a short TTL.
  3. Currently only IP,ICMP,UDP, and TCP headers are decoded.
  4. Sockets must be enable in your PHP build.


Source is available.


phpsniffer requires PHP 4.3.0 or greater with sockets enabled.

If you want to send actual e-mail, think about this: My name is david and my domain is eder.us.

Send me some bitcoins: 1PAc2UFS77zhsfdLz86rHynREXTKjWrRzY