Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Listens to HTTP Requests without using WinPcap?

Can i listen to outgoing HTTP Requests with my application without using WinPCap?

like image 384
Danpe Avatar asked Nov 05 '22 19:11

Danpe


1 Answers

The way Fiddler and Charles do this is by inserting themselves as the system proxy. That way, when a browser (or .net for that matter) make an HTTP request, it goes via the proxy and can therefore be traced. So to do this you need to write a proxy and figure out how to set it as the proxy used by the network app you wish to trace. If it's sensibly written, it should use the system defined proxy, which in this case will be your sniffer app.

like image 175
spender Avatar answered Nov 09 '22 04:11

spender