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

Does Wireshark have an API?

0

Hi everyone,

I am a MSc. student, and I want to use Wireshark to analyze packets and import this result to Java. Anyone know whether Wireshark has an API?

Sarwar
[email protected]unimail.hud.ac.uk

asked 20 May '12, 06:27

sarwar's gravatar image

sarwar
1111
accept rate: 0%

edited 20 May '12, 14:44

helloworld's gravatar image

helloworld
3.1k42041

Dear All,

Have anyone information about library to analysis packets in Java.

(23 May '12, 03:22) sarwar

did you read my answer, posted 2 days ago?

(23 May '12, 04:03) Kurt Knochner ♦

One Answer:

1

You have these options:

  1. run tshark (possibly with option -V) and then parse the text output with Java
  2. If you want to use Java anyway, use one of these PCAP Java libraries/bindings:

Regards
Kurt

answered 20 May '12, 08:28

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%