Comments (17)
你好,我用以下代码没有复现
int main() {
DisplayStatus();
HMODULE hm;
PVOID buffer = ReadDllFile2("a.dll");
NTSTATUS status = LdrLoadDllMemoryExW(&hm, nullptr, 0, buffer, 0, nullptr, nullptr);
if (NT_SUCCESS(status)) {
auto test2 = GetProcAddress(hm, "test2");
while (TRUE) {
test2();
Sleep(5000);
}
}
return 0;
}
from memorymodulepp.
from memorymodulepp.
测试程序在我这里运行正常。https://drive.google.com/file/d/1po5M03lWKu6XyYHtFxHmC17tWI5XqJKw/view
from memorymodulepp.
from memorymodulepp.
from memorymodulepp.
这个链接打不开
https://drive.google.com/file/d/1RgfJhR1P4zzArrkHJkoUDKREYecNXzx4/view
from memorymodulepp.
https://drive.google.com/file/d/1O-_Kpx0u4LOlyYdVUUCvUW_1nmJjdw_L/view?usp=sharing
from memorymodulepp.
a.dll引用了MemoryModulePP,test.exe也引用了它,这时如果使用RtlAllocateHeap
来分配MmpGlobalDataPtr会引起重复初始化,从而引起断言失败。
from memorymodulepp.
那就麻烦了 不过我确认我的dll是没有引用MemoryModulePP的 崩溃堆栈都是一样 你可以在a.dll中去掉MemoryModulePP的引用,注释掉test_user32。 然后试试正常加载LoadLibrary(L"a.dll") 并调用大概率也会崩溃。。。
from memorymodulepp.
试试把 a.dll 从解决方案中排除,然后重新添加进来,重新生成
from memorymodulepp.
还是崩 不是每次都崩溃
https://drive.google.com/file/d/18PmrTOgXBxfDIvLSkle8ouWYsmc9-2Qj/view?usp=sharing
from memorymodulepp.
有没有把测试程序放到虚拟机里试一下?我在几个系统里测试都没复现出来。
from memorymodulepp.
虚拟机win10 21H2(19044.2006) 测试崩溃 win11没有问题
笔记本win10 22h2测试3台都崩溃(开启摄像头)
台式机两台 win10 22H2 一台有外置摄像头的崩溃 一台没有的没有问题
from memorymodulepp.
试一下最新的代码
from memorymodulepp.
from memorymodulepp.
试过最新的代码吗?
from memorymodulepp.
遇到一次崩溃 但后面又测不出来了 先这样吧
from memorymodulepp.
Related Issues (20)
- 两层内存加载情况下,Win7程序不能运行 (MemoryModule -> MemoryModulePP binary -> APP binary) HOT 6
- SetUnhandledExceptionFilter异常未处理 HOT 1
- 可以用来注入其他进程吗 HOT 1
- 程序静态链接该库后,程序内的LoadLibraryW调用会引发崩溃 HOT 3
- 作者厉害!原版的加载我的dll有问题,用你这个成功了,不过运行一段时间后断言失败 HOT 17
- 32位模式内存加载CoreFoundation失败 HOT 1
- Crash!!! HOT 3
- 帧不在模块中 HOT 11
- 链接器选项 /DYNAMICBASE:NO 引发的崩溃 HOT 1
- Go编译的DLL无法加载 HOT 1
- 加载_运行_释放_再加载_再运行,有很大几率报错:帧不在模块中 HOT 4
- Crash after working some time. HOT 13
- Crash Crash Crash Crash Crash Crash HOT 4
- 被加载 dll 报错:系统找不到指定的文件 HOT 13
- 帧不在模块中
- [Feature Request] DLL releases? HOT 9
- 一些崩溃
- 最新版编译的 Dll 中 ReflectiveLoader 导出函数没有了 HOT 1
- Loading a protected DLL HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memorymodulepp.