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

HELP WITH WIRESHARK

-1

Hello,

I would like to ask you if the wireshark controls the protocols for any errors to do this in the programming language c/java.

Thank you....

please reply me as soon as possible

asked 24 Jun '15, 08:35

Maria%20Tigka's gravatar image

Maria Tigka
0111
accept rate: 0%

I'm sorry, your question isn't very clear, can you rephrase it?

(24 Jun '15, 08:48) grahamb ♦

I have one job where my professor asked me to create code in the programming language java / c where wireshark will control the protocols for any mistakes.

(24 Jun '15, 08:53) Maria Tigka

which protocols and what errors?? Are you supposed to use parts of the Wireshark code, or the Wireshark binary itself, by starting the binary from your Java/C code?

(24 Jun '15, 10:03) Kurt Knochner ♦

yes, i mean this how can i do this?

(24 Jun '15, 10:06) Maria Tigka

I'm sorry, but "yes" to which of my two questions and do what do you want to do?

So, again:

  1. Are you supposed to use parts of the Wireshark code?
  2. Are you supposed to start the Wireshark binary from your Java/C code?
(24 Jun '15, 11:08) Kurt Knochner ♦

I mean that he wants to start the Wireshark binary from my Java/C code and my professor wants the wireshark to find the mistakes of protocols e.g. UDP, TCP, HTTP protocols e.t.c.?

(24 Jun '15, 11:35) Maria Tigka

O.K. the first part is clear (start the Wireshark binary). Now let's try to understand the second part:

If you start Wireshark from Java/C, you will only have a GUI instance of Wireshark running, no less no more.

What does your professor expect as the result? What does he mean by "find mistakes of protocols"? Are you supposed to load a capture file or are you supposed to capture from an interface. In both cases: As I said, if you start the Wireshark binary it will run, but there is no way to "remote control" the running binary.

(24 Jun '15, 11:41) Kurt Knochner ♦

My Professor means that in this way the Wireshark Control of potential errors of protocols that may arise.

You need to load a log file in that case, how this can be done;

(25 Jun '15, 06:25) Maria Tigka

Maybe it is best if your professor refines his task here himself so we can sort it out more easily ;-) Looking at this from a distance he -might- want you to run the analysis of tcpip captures through your code using tshark (the comand line version of wirheshark) ...

(25 Jun '15, 14:53) mrEEde

can you help me about this and i would like to write an example code?

Thank you.

(29 Jun '15, 13:28) Maria Tigka
showing 5 of 10 show 5 more comments