Original Post
🔒 Locked
LoadLibrary from Memory?
Advertisement
There is no way to do this through any documented API. You might be able to find some internal Windows function that does this, or you could write your own loader for loading from memory.
You could write a dummy dll file with lots off methods. In these methods you could have a bunch of NOP instructions.
I don't know about loading the dll from memory but at least you will be able to dynamically write code and reload the dll into memory. You just make a call to your dummy method an away you go.
Ignore: Sort of like self-modifying code but not in a handy sort of way.
Edit: Sort of like self-modifying code but in a handy sort of way.
[Edited by - Adam Hamilton on April 28, 2006 1:02:44 AM]
I don't know about loading the dll from memory but at least you will be able to dynamically write code and reload the dll into memory. You just make a call to your dummy method an away you go.
Ignore: Sort of like self-modifying code but not in a handy sort of way.
Edit: Sort of like self-modifying code but in a handy sort of way.
[Edited by - Adam Hamilton on April 28, 2006 1:02:44 AM]
There's a library out there doing exactly that:
http://www.joachim-bauch.de/tutorials/load_dll_memory.html/en
http://www.joachim-bauch.de/tutorials/load_dll_memory.html/en
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement