-
Notifications
You must be signed in to change notification settings - Fork 95
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
Loading a protected DLL #44
Comments
Hello. Please check out the code and try again. |
@bb107 thanks for the quick reply, i think it worked now, doing some tests! Isn't possible to debug the DLL injected with this lib right? |
Simply put this doesn't prevent debugging, it just makes it harder. The breakpoint is essentially an assembly instruction |
I'm referring if its possible to debug our own DLL that has been loaded using the memory module using Visual Studio. When i set case 10: {
if (MmpGlobalDataPtr->NtVersions.MinorVersion) return STATUS_NOT_SUPPORTED;
if (MmpGlobalDataPtr->NtVersions.BuildNumber >= 22621) {
#ifdef _WIN64
Feature = "\x74\x34\x48\x8B\x08\x48\x39\x41\x08\x75\x65\x48\x8B\x40\x08\x48\x39\x18\x75\x5C\x48\x89\x08";
Size = 24;
OffsetOfFunctionBegin = 0x2F;
#else
return STATUS_NOT_SUPPORTED;
#endif
}
//
// Add more conditions here.
//
// else if (MmpGlobalDataPtr->NtVersions.BuildNumber >= XXXXXXXXX)
else {
return STATUS_NOT_SUPPORTED; // <-- fail, NtVersions.BuildNumber 19045
}
break;
} My Also, there's no |
DLLs loaded from memory can be debugged in Visual Studio, but only at the assembly level and not at the source code level. Because this loading process is not handled by the kernel, the debugger does not know it is a DLL. LdrpTls is implemented by ntdll, but the related functions(such as For how to extract the signature, you can refer to #6. You can also refer to BlackBone, which updates the signature for Windows 11. |
I'm testing loading a dll proteted with Themida using your MemoryModule project.
I protected the
a.dll
that comes with the project, when i try to load it the code fail at this line:status = STATUS_NO_MEMORY;
It does fail in the latest section, could you please, help debug this?
The text was updated successfully, but these errors were encountered: