easyhook报错The given 64-Bit library does not exist
2024-09-05 05:38:21
在调用 RemoteHooking.Inject 时,报错
查看easyhook源代码,出错位置如下
if(!RtlFileExists(UserLibrary))
{
#ifdef _M_X64
THROW(STATUS_INVALID_PARAMETER_5, L"The given 64-Bit library does not exist!");
#else
THROW(STATUS_INVALID_PARAMETER_4, L"The given 32-Bit library does not exist!");
#endif
}
BOOL RtlFileExists(WCHAR* InPath)
{
HANDLE hFile; if((hFile = CreateFileW(InPath, , FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, , NULL)) == INVALID_HANDLE_VALUE)
return FALSE; CloseHandle(hFile); return TRUE;
}
问题源头是 CreateFileW 这里失败,但是我手动调用CreateFileW传入dllPath也没有失败啊,很奇怪
https://stackoverflow.com/questions/31762879/easyhook-the-given-32-bit-library-does-not-exist-user-library-does-not-export
I've had same issue but with 64 bit.
Removing my assemblies and EasyHook from GAC solved the issue.
gacutil /uf EasyHook
gacutil /uf EasyLoad64
gacutil /uf MyAssembly
I don't know exactly why it wasn't working before. Clearly the problem was that couldn't find some assemblies. After reading on the Internet I saw an example without the Config.Register
function. Seems with the latest version (2.7) you don't need to register assemblies in the GAC. I just commented this function and it worked.
以下不靠谱
最新文章
- nyoj 下三角矩阵
- 鼠标hover某个元素时其属性表现Css transition 过渡效果(以宽高属性居中放大为例)
- SQL--分页查询
- C++ set使用
- Android开发 Failed to install *.apk on device 'emulator-5554': EOF
- MySQL与Oracle 差异比较之一数据类型
- Java之--Java基础知识
- Mysql 死锁问题
- 静默方式安装window oracle
- 读 Zepto 源码之内部方法
- Wdatepicker日期控件的使用指南 (转)
- 201521123040《Java程序设计》第5周学习总结
- FPGA學習筆記(肆)--- Star Test Bench Template Writer
- css3渐变特性
- [Laravel] 03 - DB facade, Query builder &; Eloquent ORM
- git bash字体设置
- React对比Vue(06 路由的对比)
- 如何将git本地创建的项目推送到github仓库
- Robot Framework 教程 (2) - 页面元素定位
- 【R】提升R代码运算效率的11个实用方法