This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Dumping TCP Payload of a Specific TCP Stream

0

I would like to create a program using python <2.7 to be able to dump the whole data section of a TCP packet.

I have tried parsing a PDML file, which worked when the packet has a "fake-field-wrapper" but proved difficult when the TCP packet contained application layer data.

What would be the best capture format to parse using python to achieve this?

asked 26 Aug '14, 03:30

WireTshark's gravatar image

WireTshark
5225
accept rate: 0%


One Answer:

2

What happens if you disable the application layer protocols that seem to be causing problems for you? If you're in possession of the original capture file, maybe you can try exporting the data again and then reparsing the PDML?

answered 26 Aug '14, 07:31

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

This worked perfectly. Thank you, something relatively simple but I could not get my head around it. That's great

(26 Aug '14, 08:31) WireTshark