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
2.6k21739


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).

link

answered 02 Aug '11, 17:14

helloworld's gravatar image

helloworld
2.6k21739
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×121
×23
×19
×7

Asked: 02 Aug '11, 05:41

Seen: 2,025 times

Last updated: 02 Aug '11, 17:19

powered by OSQA