0

I was try to spoof my IP while using HttpWebRequest. I've searched here for a solution and found this piece of code:

request.ServicePoint.BindIPEndPointDelegate = delegate { return new IPEndPoint(IPAddress.Parse("Spoofed IP Goes Here"), 0); };

Yet this code does not work for me, can you guys give me another solution?

user3146699
  • 21
  • 2
  • 7
  • 2
    That's totally impossible. http://en.wikipedia.org/wiki/Transmission_Control_Protocol – SLaks Dec 31 '13 at 18:55
  • 1
    I hope you realize you're wasting your time. –  Dec 31 '13 at 18:55
  • 1
    Are you expecting the response or do you want the response to go to another IP? – kakridge Dec 31 '13 at 19:01
  • 1
    I want the response to go to another IP – user3146699 Dec 31 '13 at 19:07
  • @RobbyDuke Is it possible to spoof IP using sockets and Raw socket type? – user3146699 Dec 31 '13 at 19:07
  • From [wiki](https://en.wikipedia.org/wiki/IP_address_spoofing): Some upper layer protocols provide their own defense against IP spoofing attacks. For example, Transmission Control Protocol (TCP) uses sequence numbers negotiated with the remote machine to ensure that arriving packets are part of an established connection. Since the attacker normally can't see any reply packets, the sequence number must be guessed in order to hijack the connection. – oleksii Dec 31 '13 at 19:17
  • It is possible, yes. However you won't get any information back. –  Dec 31 '13 at 21:08
  • possible duplicate of [C# How to spoof IP address for WebRequest](http://stackoverflow.com/questions/5317513/c-sharp-how-to-spoof-ip-address-for-webrequest) – SilverlightFox Jan 01 '14 at 15:55

1 Answers1

1

It can be done by using SharpPCap. See this answer by Evan.

Community
  • 1
  • 1
Partho
  • 138
  • 1
  • 11