OSQA is unmaintained. Help us figure out where to go from here.

With tshark I can output CSV-like (well, tab-separated values) data about capture packages using -T fields and -e. But I'd like to access these fields directly with Perl, e.g. as a hash or in an object-oriented manner with getters.

Does something like this exist? I've looked on CPAN (via https://metacpan.org/) and with Duckduckgo using keywords like perl wireshark as well as perl epan.

asked 30 Mar, 08:53

XTaran's gravatar image

XTaran
6123
accept rate: 0%


There is/was a library called Net::Sharktools. However I'm not sure if it works with Wireshark 2.X.

Another way to go is to use the JSON output of tshark and the JSON perl module.

permanent link

answered 16 Apr, 13:22

Uli's gravatar image

Uli
9031515
accept rate: 30%

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:

×831
×10
×9
×1

question asked: 30 Mar, 08:53

question was seen: 343 times

last updated: 16 Apr, 13:22

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