Take the 2-minute tour ×

We have a terminal emulator (its more then just this, but for the question it best describe what it it...) Sometime ago instead of rewriting it a port proxy was introduced. the proxy listens to loopback and takes the connection and encrypts it using SSL.

What I need to do is get the data from the local machine before it goes in to the proxy so we can check it and stop or change it. I can't change the configuration of the current setup so I need to find a way to get the data before its sent. can this be done using winsock? any other approaches?


share|improve this question
There must be something you can change if you're considering trying to intercept it at the library level. Why not another proxy, between the app and the encrypting one? –  shambulator Nov 25 '10 at 12:29
thanks shambulator another proxy would be the easiest approach however the Terminal only allows you to change the target IP address and the current proxy always listens on the same address on a fixed port! so no way of putting another proxy in line. –  Adrian Nov 25 '10 at 17:41
add comment

3 Answers

up vote 2 down vote accepted

A Layered Service Provider should do it (one is presumbably inside fiddler, so if that works for you, that's going to be quicker

share|improve this answer
Thanks Currently looking into this trying to find a c# example –  Adrian Nov 25 '10 at 17:44
add comment

You could possibly try using fiddler to listen in to

share|improve this answer
add comment

You should use some Win32 API Hook library.

Maybe EasyHook or Microsoft Detours.

share|improve this answer
add comment

Your Answer


