Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Spoof ip in java

Tags:

java

ip

spoofing

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?

like image 331
Sajad Bahmani Avatar asked Jun 01 '11 17:06

Sajad Bahmani


2 Answers

JpCap may be what you want http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/

like image 85
Peter Lawrey Avatar answered Oct 03 '22 07:10

Peter Lawrey


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.

like image 24
Liv Avatar answered Oct 03 '22 06:10

Liv