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

Interface data from file

0

Hello,

can I somehow simulate an interface with a file? That is, I have a file with sniffed data (not sniffed with Wireshark) that consists of a bunch of hex numbers which symbolize the data going through the interface. Can I somehow input this data in Wireshark and dissect it with the protocols that I wish?

Thank you very much!

Best regards, Matheus Priebe Bertram

asked 05 Dec '12, 02:59

Matheus%20Priebe%20Bertram's gravatar image

Matheus Prie...
6335
accept rate: 100%


2 Answers:

0

You could use a traffic generator/replay tool like bittwist, tcpreplay or ostinato to generate "life" traffic from a capture file, and recapture it with Wireshark.

Warning: you should isolate the traffic generator in a network with no vital/production systems, or you might wreak havoc on your life network.

answered 05 Dec '12, 04:07

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

0

You can use text2pcap. Format the data in a way that text2pcap understands and you might be able to dissect that data in Wireshark.

http://www.wireshark.org/docs/man-pages/text2pcap.html

If your data (hex numbers) is only the TCP/UDP payload, you can tell text2pcap to add dummy IP+UDP/TCP headers (option -i, -u, -T).

Regards
Kurt

answered 05 Dec '12, 10:58

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%