if I load in my C# application a flash application A that opens a socket with a server B, is it possible to setup a local hook so that i can read the packets exchanged between A and the server B?
- I may obtain the flash application sources if needed, but I'm not the one who wrote them
- I'm new to C# ( to be honest, I'm still wondering what's the best language to write this kind of application for windows ) and to hooking, so any example would be really appreciated :)
- I'm working client side
Yes you can. You should use EasyHook library to hook native socket API calls from C#. And by placing hooks on connect, send and recv functions you can hook any traffic in Windows based application.
Here's an example:
And NativeSocketMethod.cs