how to get each packet data byte as it comes in and write it to a text file(real time)?

asked 2018-06-12 15:35:52 +0000

shenthil gravatar image

I am trying to extract the packet bytes as it comes in and process it real time so that I could save time post processing.

edit retag flag offensive close merge delete


By "write it to a text file" do you mean "write to a text file the summary line or packet details shown in Wireshark or printed in TShark"?

Guy Harris gravatar imageGuy Harris ( 2018-06-12 17:05:37 +0000 )edit

Yes. I just got that working by tshark -i eth > text.log. This command helped me to save it to a text file. But now my question is how to access the packet details real time to process it?

shenthil gravatar imageshenthil ( 2018-06-12 17:08:42 +0000 )edit

@Guy Harris I am trying to get the decoder that gives lap timing on a track each time a car passes by using wireshark that is in Hex format. I want to decode those details using a macro to get the best timing of it so that I have the best lap time before the capture is complete.

shenthil gravatar imageshenthil ( 2018-06-12 17:11:51 +0000 )edit