在调用 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.

以下不靠谱

最新文章

  1. nyoj 下三角矩阵
  2. 鼠标hover某个元素时其属性表现Css transition 过渡效果(以宽高属性居中放大为例)
  3. SQL--分页查询
  4. C++ set使用
  5. Android开发 Failed to install *.apk on device 'emulator-5554': EOF
  6. MySQL与Oracle 差异比较之一数据类型
  7. Java之--Java基础知识
  8. Mysql 死锁问题
  9. 静默方式安装window oracle
  10. 读 Zepto 源码之内部方法
  11. Wdatepicker日期控件的使用指南 (转)
  12. 201521123040《Java程序设计》第5周学习总结
  13. FPGA學習筆記(肆)--- Star Test Bench Template Writer
  14. css3渐变特性
  15. [Laravel] 03 - DB facade, Query builder & Eloquent ORM
  16. git bash字体设置
  17. React对比Vue(06 路由的对比)
  18. 如何将git本地创建的项目推送到github仓库
  19. Robot Framework 教程 (2) - 页面元素定位
  20. 【R】提升R代码运算效率的11个实用方法

热门文章

  1. js 数据类型的判断
  2. 第二篇 HTML 常用元素及属性值
  3. 一个密码经过多次MD5加密能否提高安全性?Java MD5盐值加解密
  4. python删除数组中元素
  5. upupw : Apache Php5.5 的使用
  6. dispatch事件分发
  7. Ansible-Playbook实战
  8. Web前端经典面试试题(一)
  9. vue2.0 移动端,下拉刷新,上拉加载更多 封装组件
  10. 3DES加解密类