in reply to Re^2: how to Decode Hexdata got from Pcap
in thread how to Decode Hexdata got from Pcap

Wouldn't that stem from the type of data in the packet?

What I mean is, your TCP output is clearly HTML plain ascii, your UDP contains control characters, for every non-printable char the hexdump prints a '.'. When you try to print the raw data your terminal is going to interpret this.


Maybe running it through something like unix strings, or sanitizing it in perl before you print it?

  • Comment on Re^3: how to Decode Hexdata got from Pcap

Replies are listed 'Best First'.
Re^4: how to Decode Hexdata got from Pcap
by Kanishka.black0 (Scribe) on May 11, 2010 at 06:02 UTC
    For DNS i got the NET::DNS module .. and i tried to use Net::Packet for others .....