Reputation: 3333
First, why do I need that? I have Wifi network. I want everyone that just connected to wifi first to redirect to login page and then if login is successful - redirect to the page requested. I thought to do that using PCap. But since WinPCap allows just to monitor packets, I can't stop packet from being sent to destination host. So the question is how can I sniff packet and change it content? As of beginning i want to capture HTTP packets only from specified network adapter.
Upvotes: 0
Views: 1438
Reputation: 70369
That's really hard to do the way you describe - doing this on "packet level" will present several problems (among others performance!).
To achieve what you want you have several easier and better suited options:
use a proxy which handles the autentication part
build a proxy (see this for C# source code etc.)
For the proxy-based options you just need to configure the network in a way that all outbound traffic must use that proxy...
Upvotes: 2