I will use sharp-pcap framework to make my spoofing program
so I need to edit my machine IP address of the packet with another IP on the source address field
I found some example on sharp-pcap project but I don't know how can I edit or change the source address field of sending packet
here sample code for sending random packets:
byte[] bytes = GetRandomPacket();
private static byte[] GetRandomPacket()
{
byte[] packet = new byte[200];
Random rand = new Random();
rand.NextBytes( packet );
return packet;
}
-
device.SendPacket( bytes );