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

Hey,

Was wondering if it's possible to point Wireshark, or a Wireshark utility, at an existing pcap UDP capture file and have it do the equivalent of: * Follow UDP Stream * Save As (Raw format) to a specified output file ...from the command line.

Is this doable?

Thanks!

-phil matthews

asked 09 Jan '15, 06:55

philbo_m's gravatar image

philbo_m
11112
accept rate: 0%


Please read the scripting part of my answer to a similar question.

https://ask.wireshark.org/questions/35353/exporting-payload-data-in-binary-file

As an alternative, you can run tshark with the options -V and -x, or -T dpml and then and extract whatever you need from that output.

tshark -nr input.pcap -V -x | your_script
tshark -nr input.pcap -T pdml | your_script

Regards
Kurt

permanent link

answered 10 Jan '15, 04:55

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Hey Kurt,

Using '-T pdml' + a little bit of post-processing on the data.data element - works like a charm.

Thanks!

-phil

(15 Jan '15, 06:49) philbo_m
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

Question tags:

×76
×58
×9

question asked: 09 Jan '15, 06:55

question was seen: 13,738 times

last updated: 15 Jan '15, 07:35

p​o​w​e​r​e​d by O​S​Q​A