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

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 ♦

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

permanent link

answered 20 May '12, 08:28

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

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:

×16

question asked: 20 May '12, 06:27

question was seen: 15,895 times

last updated: 23 May '12, 04:03

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