How could I sniff network traffic in Java?

前端 未结 4 1493
伪装坚强ぢ
伪装坚强ぢ 2020-12-10 16:01

I was just looking around to find out how to make a program that would sniff my network traffic in Java, but I couldn\'t find anything. I wanted to know if there was any way

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 16:27

    Another Java libpcap wrapper is https://github.com/kaitoy/pcap4j

    Pcap4J is a Java library for capturing, crafting and sending packets. Pcap4J wraps a native packet capture library (libpcap or WinPcap) via JNA and provides you Java-Oriented APIs.

提交回复
热议问题