Sniffing network traffic in java

955 Views Asked by At

Referring to: How could I sniff network traffic in Java?

I managed to get the sniffer to work with various APIs mentioned there (jNetPcap seems to work best for me). However I struggle to make the payload actually readable, as it is in gzip format.

So is there another API (or a good way with jNetPcap) to sniff and decompress gzipped content in Java?

1

There are 1 best solutions below

0
On

you can also use winPcap for windows to sniff packets

1.in java write code to list the network devices 2.then set filters to sniff packets of your own desire