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

TShark script

0

Hi All,

I have used wireshark but not tshark.

Is it possible with tshark to capture the barcodes from a USB reader, and send them as raw TCP to a IP address?

Would this be difficult to script?

Cheers in advance,

-Al

asked 08 Aug '14, 17:36

bigalnz's gravatar image

bigalnz
1111
accept rate: 0%


One Answer:

0

I have used wireshark but not tshark. Is it possible with tshark to capture the barcodes from a USB reader,

If you are able to do that with Wireshark (sounds like, according to your comments), you can do it with tshark as well. In that case, I'll need more information about how you did it with Wireshark. As soon as you post that information, I can (possibly) 'translate' it into a way to do the same with tshark.

and send them as raw TCP to a IP address?
Would this be difficult to script?

sending data does not work with tshark, so you'll have to write a script that is able to send data via TCP or use netcat or similar tools.

Regards
Kurt

answered 10 Aug '14, 06:48

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 10 Aug '14, 09:20