How to Spoof ip in java

浪尽此生 提交于 2019-11-28 07:59:53

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/6204967/how-to-spoof-ip-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!