简体   繁体   中英

How to do ip spoofing/change source address/raw socket programming for UDP packets in java?

I sent and received spoofed IP packets by using Linux kali tools hping3. Now I would like to send spoofed IP packets using java. I looked at these questions but could not find any good resource(existing links don't work) or working solution.

Most of them have accepted answers but those answers solution do not work now. Most of those answers' solution links don't work like these links.

Additional information. My PC is Linux server(64 bit) and with 64 bit JDK. One solution worked for windows but does not work in Linux.

I turned out there was a problem in Jnetpcap 1.4 for Linux OS. Jnetpcap 1.4 worked fine in windows but did not work in Linux but Jnetpcap 1.3 worked fine both in windows and Linux.

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