How could I sniff network traffic in Java?

前端 未结 4 1488
伪装坚强ぢ
伪装坚强ぢ 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:13

    You need a packet sniffer api, maybe netutils is what you need:

    The 'netutils' package gives a low level java network library. It contains extensive infrastructure for sniffing, injecting, building and parsing Ethernet/IP/TCP/UDP/ICMP packets.

提交回复
热议问题