I do not want to change parts of the ethernet frame, but I need to change the IP packet and part of the frame data.
I am trying to send a raw frame and it still puts the IP address information. I basically need to send a frame without defining an endpoint, except in the bits that I send.
Here is what I got:
Socket s = new Socket(AddressFamily.Unspecified, SocketType.Raw, ProtocolType.Raw); EndPoint ep = new IPEndPoint(IPAddress.Parse("205.188.100.58"),80); s.SendTo(GetBytes(""),ep);
My question is: Using SendTo adds part of the IP frame, I do not want this, because I want to fake the original IP address. Using Submit will fail because it says I need to specify an endpoint. Any suggestions on what to do? I just want to send a packet and define an IP section and a data section.
Note. No, I do not do a DOS attack, I need this for legal use!
I know how to determine the IP part, it is just a matter of sending data without the generated IP part.
source share