-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing MemoryGetProcAddress
&& MemoryLoadLibraryEx(const void *, size_t, CustomAllocFunc, CustomFreeFunc, CustomLoadLibraryFunc, CustomGetProcAddressFunc, CustomFreeLibraryFunc, void *)
#51
Comments
Hello, is the above code the original version of MemoryModule? As far as I know, the original version does not support TLS. The missing functions such as |
I think so, it is a copy of the one from py2exe. |
If this is the case, you need to modify MemoryModule to call the unexported |
I see that this project, Blackbone, jector, and probably many other all resorted to load this unexported symbol from |
For starters x64 cannot I could just paste the asm code inside of an asm file but it would require some fixups and probably dumping of even more internal only ntdll.dll symbols for it to work as well. Also when I tried this I got an access violation instantly from inside the function call, and then I realized I had to fake up the |
You can't use assembly code directly because it contains relocation code. Implementing this function requires hooking some functions to complete, which may bring uncertainty. |
You can use asmjit for x64 |
I have a usecase forthese apis as drop in replacement for :
That implements full TLS support. The reason why is that I need to load python's core dll file (3.14) from a
void *
pointer obtained fromLockResource
, however since Python 3.12 the Python Core Developers force__declspec(thread)
in parts of their codebase so now when I go to load the dll it causes an access violation when it even attempts to call it'sDllMain
function.The text was updated successfully, but these errors were encountered: