创建原始数据包以欺骗 UDP 数据包 [英] Creating raw packets to spoof UDP Packets
本文介绍了创建原始数据包以欺骗 UDP 数据包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望使用 Java 来欺骗 UDP 数据包.是否有任何优秀的 Java 库可以让您创建自己的 RAW SOCKETS?
I am looking to spoof UDP packets using Java. Are there any good Java libraries out there that allow you to create your own RAW SOCKETS?
推荐答案
我会使用封装了 libpcap的 Java API一>.
libpcap 有一个注入"功能,允许您发送原始数据包.(当然,您必须在尝试从中发送数据包的机器上拥有 root 或管理员权限.)有许多可用的 Java API,例如 jNetPcap 或 jpacp.例如,jpcap 有一个 类,允许您发送任何数据包.
libpcap has an "inject" function that allows you to send a raw packet. (Of course, you must have root or administrator priveleges on the machine you're trying to send the packet from.) There are a number of Java APIs that are available, such as jNetPcap or jpacp. jpcap, for example, has a class that allows you to send any packet.
这篇关于创建原始数据包以欺骗 UDP 数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文