将 32 位 dll 注入 64 位进程 - Autoit 使之成为可能
Injecting 32bit dll into 64bit process - Autoit makes it possible?
afaik 没有办法将 32 位 DLL 注入 64 位进程,反之亦然(至少我的 C++ 编写的注入器/DLL 是不可能的)。但是,当使用 http://pastebin.com/AGWw2kT8 的 Autoit 注入器时,可以将 32 位 dll 注入 64 位进程。这个Autoit库使用与我的c ++注入器(CreateRemoteThread)相同的注入方式。有人可以解释这种行为吗?
CreateRemoteThread 32->64
不起作用!
CreateRemoteThread 64->32
会起作用!
有关该主题的更多信息,请单击此处
我已经找到了注射成功的原因。在 Autoit 注入测试脚本中,我使用 @SystemDir & "calc.exe"
作为目标应用程序的路径。但是,在 64 位 Windows 安装中,@SystemDir
宏指向 C:\Windows\SysWOW64 而不是 C:\Windows\System32 - 因此脚本启动了 32 位版本的 calc.exe,其中注入成功。
它不可能工作(你不能在一个进程中混合使用 32 位和 64 位代码)。因此,它没有。当然,它可能无法明确表示它没有奏效。
相关文章:
- 挂起和取消挂起一个文件DLL
- std::threads可以从Windows DLL中的全局变量创建/销毁吗?
- 导入库可以跨dll版本工作吗
- 从C++dll访问C#中的一行主要参数
- 链接到自行创建的dll失败
- 为什么使用 P/Invoke 调用 dll 时,某些计算机中的 LoadLibrary 失败?
- 在调用FreeLibrary后,释放动态链接到具有相同版本的CRT堆的DLL的内存
- 如何指定我希望我的LIB链接到的DLL文件?-Visual Studio 2019
- 如何将图像传输到c++(dll)中的缓冲区,然后在c#的缓冲区中读/写
- C++:将外部库链接到dll库
- 在 Windows 上,是否可以让 dll 在不使用 PATH 环境变量的情况下在另一个文件夹中查找依赖项?
- 不同的Visual Studio版本中缺少.dll
- 从DLL中删除类的实例
- 如何包装第三方DLL在R中使用
- 使用c#访问c++dll中带有char*参数的函数时发生AccessViolationException
- 系统.将数组移交给c#中动态加载的c++DLL时发生AccessViolationException
- 为什么导入Mixed native/CLR lib.dll的本机C++应用程序没有在Mixed lib.dll中的外部变
- 当我使用 C++ 中的 C# dll 来使用 Selenium 时,存在异常处理问题
- 将 32 位 dll 注入 64 位进程 - Autoit 使之成为可能
- 在AutoIt中调用DLL函数,DLLStruct没有数据