I have a diameter packet capture pcap file (using tcpdump) containing some AVPs. I'd like to parse the pcap file and access/retrieve the AVPs.
I'm using python3.5.1. The dpkt library apparently supports diameter well but it's not yet available for python3. I tried converting it via 2to3-3.5 script but the conversion isn't full-proof and I'm hitting unicode errors while parsing the pcap.
I am trying to use scapy now. I need some help/examples in how to use scapy to:
- parse a pcap file
- retrieve/parse AVPs from the pcap.
Any help would be appreciated.
Regards Sharad
pcap = rdpcap(capture) for p in pcap: p.show()
This would show you how scapy sees it. Hope that helps. – Noob123pcap=rdpcap(capture) for p in pcap: p.show()
only gives youraw
data. – Tiina