IP Spoofing possible?
843790Apr 15 2010 — edited Apr 16 2010Hi!
I have written a piece of software that can read snoop files and replay them. To give a little more understanding on the topic, I can say that we snoop SNMP traffic (UDP) and then we can recreate the scenario in a lab environment but with the lab environments IP numbers.
Previously, we have done this with JPcap (http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html) but I want to see if it is possible to do with using only the Java 6 API.
Reading and parsing snoop files is already sorted, but the problem is changing the IP number to anything I want.
The frame I have is an ethernet frame. I have all this in byte form. Of course, I can change the IP number in the byte array, but how do I send the byte array?
I have a "half-way" solution now, where I use java.net.DatagramPacket and use the UDP contents from the ethernet frame and put that in the DatagramPacket, but I really need to be able to change the IP number.
Can I do thins with Java 6 API?
Thanks for any input!
//Jonas