C# How to spoof IP address for WebRequest

前端 未结 6 1570
小蘑菇
小蘑菇 2020-12-14 10:28

I have asp.net website hosted and I am making WebRequest to post data and get response. The website is having IP filtering. I want to spoof sender IP address for testing pur

6条回答
  •  心在旅途
    2020-12-14 11:11

    What your looking for is SharpPCap which is a .NET port of WinPCap.. it allows you to do IP Spoofing, which is what your talking about. The only problem with your idea is that you wont be able to get a response back. You can send requests out, but if you dont have a proper return address then the request will be lost in the interwebs.


    Edit

    To do this yoruself w/out the help of a library you will need to construct the raw packets yourself. This has been answered here.

提交回复
热议问题