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

Do Perl bindings or a Perl Interface to EPAN or tshark exist?

0

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 '17, 08:53

XTaran's gravatar image

XTaran
6123
accept rate: 0%


One Answer:

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.

answered 16 Apr '17, 13:22

Uli's gravatar image

Uli
9031515
accept rate: 29%