简体   繁体   中英

Sniffing network traffic in java

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM