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

Exporting multiple audio/mpeg packets

0

I'm new to writing Lua scripts in Wireshark, so maybe my question is stupid, but is it possible to write a Lua script that will export all audio/mpeg packets from a capture? I can do this manually in Wireshark by applying a display filter (http.content_type == "audio/mpeg"), then right-clicking each Media Type in the Packet Details window, and then selecting 'Export selected packet bytes'.

asked 02 Aug '11, 05:41

Jesper's gravatar image

Jesper
1111
accept rate: 0%

edited 02 Aug '11, 17:19

helloworld's gravatar image

helloworld
3.1k42041


One Answer:

0

Yes, it's possible. See another post where Lua was used to extract the XML payload from TCP into a file. In your case, your tap would be defined as:

Listener.new(nil, 'http.content_type == "audio/mpeg"')

If your capture contains multiple audio/mpeg streams, you'd also have to modify that Lua to separate the streams into their own files (assuming that's detectable from your protocol).

answered 02 Aug '11, 17:14

helloworld's gravatar image

helloworld
3.1k42041
accept rate: 28%