MemoryModule
MemoryModule copied to clipboard
Library to load a DLL from memory.
In this function under MemoryModule.c: ``` static BOOL CopySections(const unsigned char *data, size_t size, PIMAGE_NT_HEADERS old_headers, PMEMORYMODULE module) { ... PIMAGE_SECTION_HEADER section = IMAGE_FIRST_SECTION(module->headers); for (..) { if (section->SizeOfRawData ==...
Why not support C#'s DLL?
I debugged the function and noticed: ```c if (exports->NumberOfNames == 0 || exports->NumberOfFunctions == 0) { // DLL doesn't export anything SetLastError(ERROR_PROC_NOT_FOUND); return NULL; } ``` A dll may have...
Currently work in progress...
Thank you for this terrific library! I had a need to use this library from my Rust project PyOxidizer (indygreg/PyOxidizer). I hope you don't mind, but I took the liberty...
The new binary name search functionality, says: ``` #define USE_BINARY_SEARCH to enable it). This gives a very large * speedup for libraries that exports lots of functions. ``` However USE_BINARY_SEARCH...
hi,i compile a dll with /MT option,but it shown exception when running.but if i turn to /MD,it can be load.i compile on visual studio 2017. how to fix this problem?...
My dll must crash when i use CString or std::string loading from memory by MemmoryModule, event the construct of CString or std::string can not be complete!
Hi, When I protect DLL with VMProtect the MemoryModule could not be loaded, I attached a sample. [SampleDLL.zip](https://github.com/fancycode/MemoryModule/files/245126/SampleDLL.zip)
@fancycode Hello, this library is not working with some special libraries that create virtual environments , If you're interested I can send a a copy of dll in private ,...