java - How do I programatically collect packets from passively sniffing? -


I want to test the vulnerability of the server, which I wrote against the man in middle attack.

How do I analyze the packet (on Mac OS X)? (I see where they are going, if they are going to my server, and they are all available, pulling information by looking at it), then I'll understand a way to encrypt everything ... but first things first

Any help on snacking the packet will be greatly appreciated.

My favorite language is Java but I can do C ++.

So, my question is: "Is there an API / library with which I can interface?"

Like, if I do packet assessor = new packet syntax (); It would be amazing

This is the best portable library for this. One is also available for this.


Comments