Forums Register Login

capturing packets going through my system

+Pie Number of slices to send: Send
I want a java code to capture Packets sending and recieving by my system.
+Pie Number of slices to send: Send
Howdy!
Well, capturing packets going thru the system is called packet/network sniffing.
What happens is that you need to directly access the network buffer and read the packets before the network card rejects the packet based on the destination mismatch.
This is possible thru C/C++, but I wonder if any *Java* code will do that for you.
Try and locate an c/c++ library that does it and write a c wrapper to the library. Then write a JNI wrapper to the *c-wrapper* and use java to do the needful for you.
As for searching for the library, my guess it that there must be some available, free for Linux.
Cheers
Lupo
+Pie Number of slices to send: Send
There is something avalaible for linux, incase u subscribe for PCQuest it is avaliable in the Dec 02 Issue. I dont remember the name....sorry
+Pie Number of slices to send: Send
You can Use Jpcap
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1326 times.
Similar Threads
Missing UDP Packets
Getting packets
Raw Socket In Java
Problem wit UIL ??
Regular expression to take integers out of a string
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:16:16.