Page 1 of 1

Periodically send data to hook dll

Posted: Fri Oct 30, 2015 1:09 am
by Davita
Hello

I need to send some data to remote process (hook dll) regularly, without crashing the process. I'm not aware if I have any options. It is not recommended to create ipc channel in remote proc, it's not recommended to create a thread in remote proc. So what options do I have? :))

P.S. this is not a system wide hook, I just need to hook only one .NET process.

Thanks

Re: Periodically send data to hook dll

Posted: Fri Oct 30, 2015 12:34 pm
by madshi
If you inject into only one application, things are quite a bit more relaxed. In that case you may be able to use threads and maybe an IPC queue and stuff, because you can properly test whether there are any stability issues with this one specific process. Be careful with uninjecting the dll, though. You need to first cleanup everything (threads, IPC queue etc) and then maybe wait a second or so, and only then uninject, to give all threads enough time to close down properly.

Re: Periodically send data to hook dll

Posted: Fri Oct 30, 2015 7:19 pm
by Davita
Helpful as always, thanks madshi :)