使用EasyHook在进程内部运行代码 [英] Run code inside process with EasyHook

查看:138
本文介绍了使用EasyHook在进程内部运行代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经能够使用EasyHook进入特定的进程,但是当我第一次进行钩子时,似乎无法找到一种运行代码的方法.

挂机时,我需要找到连接到特定文件的文件句柄(不知道如何找到这样的文件句柄...),然后以将更改旧文件句柄的方式运行ReOpenFile.这意味着所有对旧句柄的调用都将转到新文件.

有任何想法吗?

I have been able to hook into specific processes using EasyHook, but I can''t seem to find a way to run code when I first hook.

When I hook, I need to find a file handle connected to a specific file (No idea how to find a file handle like this...), and then run ReOpenFile in a way that will change the old file handle. Meaning that all calls to the old handle will go through to the new file.

Any ideas?

推荐答案

链接 [^ ]可能会对您有所帮助.
This Link[^] might help you.


这篇关于使用EasyHook在进程内部运行代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆