http://www.perlmonks.org?node_id=356481


in reply to Sniffing binary data, heuristics?

I'm writing a packet sniffer

Why? There are decent sniffers already written. You're better off, IMO, using one of them and then using perl to grovel over their log files rather than spending valuable time writing the sniffer as well.

Replies are listed 'Best First'.
Re: Re: Sniffing binary data, heuristics?
by Ryszard (Priest) on May 26, 2004 at 07:58 UTC
    Quite simply, because i can. its an interesting thing to do for me.. :-)
      Take a look at Net::Pcap and Net::Packet as these may make your life a lot easier.

      I made a start on this but the semantics of separating TCP/IP streams between multiple clients and multiple servers in real time got very complicated.

      I can probably did out some ugly code if you want :)

      The 'Cat