parsing .pcap files

Astan Chee stanc at
Fri Jun 6 10:41:54 CEST 2008

Im using pyflag to parse .pcap files. Pyflag displays the data part of 
the .pcap file in binary and I was wondering what this means. How do I 
decode the 'data' part of the packet without using external libraries? 
What does these non-alpha numerical information mean? Is there a 
(python) dictionary/documentation somewhere that I can use to parse this 
Thanks again.
PS: I've attached the .pcap file that Im using to test and the python 
file as well.

"Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."

Animal Logic

Please think of the environment before printing this email.

This email and any attachments may be confidential and/or privileged. If you are not the intended recipient of this email, you must not disclose or use the information contained in it. Please notify the sender immediately and delete this document if you have received it in error. We do not guarantee this email is error or virus free.

-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-python
Size: 28968 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcap_py.pcap
Type: application/octet-stream
Size: 1838 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list