reinject DLL
-
- Posts: 31
- Joined: Fri Apr 03, 2009 2:21 pm
reinject DLL
Hello
I need to call UninjectDLL to reinject the same function in the same program?
Another program is injecting the same DLL and overlaying my hook. So I need to reinject the DLL each time the program runs.
I need to call UninjectDLL to reinject the same function in the same program?
Another program is injecting the same DLL and overlaying my hook. So I need to reinject the DLL each time the program runs.
Re: reinject DLL
Injecting the same dll? I'm confused. The other program is injecting your hook dll? Or what do you mean?
-
- Posts: 31
- Joined: Fri Apr 03, 2009 2:21 pm
Re: reinject DLL
See,madshi wrote:Injecting the same dll? I'm confused. The other program is injecting your hook dll? Or what do you mean?
I have a logging system that records all file operations (copy, move, delete). For this, I hooked the Windows functions.
I found that another program can create a hook for these same functions, and using assembler, execute procedures without calling the Windows functions, preventing me of recording this operation.
I need put my functions back at the top of the list of hooks, to be called before other hooks, recording the operation.
Re: reinject DLL
Does your hook stop working completely? Or does it just not work for this one "other program"?
-
- Posts: 31
- Joined: Fri Apr 03, 2009 2:21 pm
Re: reinject DLL
While this program is running, my hook do not work. When it is closed, the hooks again function normally.
Re: reinject DLL
You mean your hooks don't work at all, not even for other processes like e.g. Explorer or Notepad etc?
Have you tried whether uninjecting and reinjecting works? Or are you asking whether I think it might work?
Have you tried whether uninjecting and reinjecting works? Or are you asking whether I think it might work?
-
- Posts: 31
- Joined: Fri Apr 03, 2009 2:21 pm
Re: reinject DLL
Exactly.
I wonder if I need to call uninjectlibrary before injecting the dll again.
I wonder if I need to call uninjectlibrary before injecting the dll again.
Re: reinject DLL
Have you tried whether uninjecting and reinjecting works? Or are you asking whether I think it might work?