Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating raw packets to spoof UDP Packets

Tags:

java

sockets

udp

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?

like image 527
Javamann Avatar asked Sep 12 '26 08:09

Javamann


1 Answers

I would use a Java API that wraps libpcap.

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.

like image 183
mpontillo Avatar answered Sep 13 '26 20:09

mpontillo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!