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

  • retag add tags

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.

shenthil's avatar
1
shenthil
asked 2018-06-12 15:35:52 +0000
edit flag offensive 0 remove flag close merge delete

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's avatar Guy 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's avatar shenthil (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's avatar shenthil (2018-06-12 17:11:51 +0000) edit
add a comment see more comments