i want to replace madshi driver and hook dll without reboot

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

i want to replace madshi driver and hook dll without reboot

Postby jgh0721 » Mon Jul 18, 2016 1:49 am

i use MCH 3.1.13.

and i use session/systemwide injection in mch, so i cant uninjection in easily. if i do that, because of hook function in use in hook dll.

so, first, i replace mch driver and hook dll in use movefileex( REBOOT_UNTIL ) and then reboot.

but, i want to replace my files without reboot. any idea?
jgh0721
 
Posts: 7
Joined: Tue Apr 22, 2014 8:06 am

Re: i want to replace madshi driver and hook dll without reb

Postby madshi » Mon Jul 18, 2016 6:32 am

Once you uninjected, you should be able to rename the hook dll. Then you can copy in the new version of the dll and re-inject. You can do MoveFileEx to delete the renamed (still in use) file, but no instant reboot is needed. Of course the renaming should be clever enough to support renaming to multiple different names, so you can replace the dll version more than just once without a reboot.

Alternatively you could add a version number to the dll name, then you don't ever have to rename it.
madshi
Site Admin
 
Posts: 9411
Joined: Sun Mar 21, 2004 5:25 pm


Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 3 guests