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

asked Jun 12 '18

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.

Preview: (hide)

Comments

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 ( Jun 12 '18 )

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 ( Jun 12 '18 )

@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 ( Jun 12 '18 )