Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: how to Decode Hexdata got from Pcap

by gman (Friar)
on May 06, 2010 at 17:03 UTC ( [id://838759]=note: print w/replies, xml ) Need Help??


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?

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 .....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://838759]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-29 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found