| View previous topic :: View next topic |
| Author |
Message |
False Prophet Expert Cheater
Reputation: -1
Joined: 28 May 2006 Posts: 121
|
Posted: Sun Dec 04, 2011 7:01 am Post subject: How to unload injected dll? |
|
|
I am injecting a dll into a process, but when I try to load it again it fails. I need to unload it but I have no idea how.
I am loading the DLL using createremotethread().
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
|
| Back to top |
|
 |
False Prophet Expert Cheater
Reputation: -1
Joined: 28 May 2006 Posts: 121
|
Posted: Sun Dec 04, 2011 12:14 pm Post subject: |
|
|
Using FreeLibraryAndExitThread() method and still can't inject any dll afterwards.
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Sun Dec 04, 2011 1:55 pm Post subject: |
|
|
| False Prophet wrote: | | Using FreeLibraryAndExitThread() method and still can't inject any dll afterwards. |
Make sure your DLL is fully cleaning up after itself or it may not unload. Check if its still in the process after you call FreeLibraryAndExitThread.
_________________
- Retired. |
|
| Back to top |
|
 |
Luetta97 How do I cheat?
Reputation: 0
Joined: 09 Jan 2012 Posts: 3
|
Posted: Mon Jan 09, 2012 11:27 pm Post subject: |
|
|
Hi I've been developing an application which injects a dll via Win32 hook globally.
It had worked fine on Windows XP and its lower versions, but once I tested it in Vista the program just crashed.
To be detail, it wasn't the apllication but the process to which the dll had been injected which the crash occured with the following error info.
I've removed unnecessary information for your convenience.
Problem Event Name: BEX
Application Name: msgmsgr.exe
Fault Module Name: xxx.dll_unloaded. (xxx.dll is the dll I've made and injected)
So, why does this happen on Vista?
I've searched the web and all it says is to delete the dll file.
But this is not the solution for me, since I'm the one actually developing & deploying the file.
Does anyone have an idea which can help me out solve this problem?
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Tue Jan 10, 2012 8:33 am Post subject: |
|
|
Without more information there isn't much we can do to help you.
What does your DLL do?
What does it hook?
Care to post the code so we can see if its a common mistake?
_________________
- Retired. |
|
| Back to top |
|
 |
|