Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Force a binary Application to use SOCKS Proxy from C# Tool? [closed]

I'm currently thinking about developing a sockscap-like tool with some cool new features and a nice WPF gui.

For those who don't remember: SocksCap was a tool that allowed you use any application with the use of a SOCKS4/5 Proxy... So e.g. you could play games with another IP without using VNC and alike.

However I'm not much of a network guy, so I'd love some input on how to "socksify / proxify" from an external application within a windows environment. As this is supposed to be a project, not a "quick and dirty" thing I'm only into "clean and generic" approaches instead of "modify HOSTS entry" or "plugin for each application"...

So how would someone with knowledge about networking programming start his research about redirecting (routing?) an applications traffic via a proxy?

Thanks for any help :-)

like image 973
Steav Avatar asked Aug 31 '12 08:08

Steav


1 Answers

Google always helps.

Under windows there is something similar to socksify:

FreeCap -- is a program for transparency redirect connections from programs through SOCKS server. In fact that some programs hasn't native SOCKS support (for example Internet Explorer), In this case FreeCap will be helpful, transparently redirect all connections requests through SOCKS server.

The internal implementation of this seems hijacked the socket call of the client applications.

like image 185
Sam Liao Avatar answered Oct 02 '22 03:10

Sam Liao