How to change tcp information in layer 3 in java ?(ip spoofing) how to change layer 2 information ? is there any good library for it in java ? it need raw socket?
Asked
Active
Viewed 8,369 times
2 Answers
5
JpCap may be what you want http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/

Peter Lawrey
- 525,659
- 79
- 751
- 1,130
-
1Or jNetPcap (http://jnetpcap.com/) will also do it. I find http://jnetpcap.com/ easier to use. – Paul Cager Jun 01 '11 at 22:22
-
None of these links work. can anyone update these links? – Al-Alamin Nov 07 '17 at 10:38
3
unfortunately to need access to the TCP/IP packet structures you need to work at very low level (you need the kernel headers in Linux for instance) so yes, you will definitely 100% need to do this outside java in a native library and call the code in your Java app.

Liv
- 6,006
- 1
- 22
- 29