flat assembler
Message board for the users of flat assembler.

Index > Windows > Uninject DLL

Author
Thread Post new topic Reply to topic
ctl3d32



Joined: 30 Dec 2009
Posts: 204
Location: Brazil
ctl3d32
Hi!

I'm using Cheat Engine to inject a DLL (written in fasm) in an active proccess. How can i uninject it when pressing down a keyboard button?

Googling around someone said to call Dllmain with fdwreason = DLL_PROCESS_DETACH. But i had no luch with that.

Any ideas?

Thanks,
ctl3d32
Post 10 Dec 2011, 02:38
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17635
Location: In your JS exploiting you and your system
revolution
Post 10 Dec 2011, 02:44
View user's profile Send private message Visit poster's website Reply with quote
ctl3d32



Joined: 30 Dec 2009
Posts: 204
Location: Brazil
ctl3d32
Thanks, but will FreeLibrary work from inside the dll?
Post 10 Dec 2011, 02:56
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
ctl3d32
Yes, it works. at least, I tried it on XP and worked like a charm.
Post 10 Dec 2011, 07:38
View user's profile Send private message Reply with quote
ctl3d32



Joined: 30 Dec 2009
Posts: 204
Location: Brazil
ctl3d32
Thanks!

Got it working using FreeLibraryAndExitThread
Post 10 Dec 2011, 09:12
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.