Periodically send data to hook dll

c++ / delphi package - dll injection and api hooking

Periodically send data to hook dll

Postby Davita » Fri Oct 30, 2015 1:09 am

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
Davita
 
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm

Re: Periodically send data to hook dll

Postby madshi » Fri Oct 30, 2015 12:34 pm

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.
madshi
Site Admin
 
Posts: 10268
Joined: Sun Mar 21, 2004 5:25 pm

Re: Periodically send data to hook dll

Postby Davita » Fri Oct 30, 2015 7:19 pm

Helpful as always, thanks madshi :)
Davita
 
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm


Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 27 guests