Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 处理注射。窗户_Windows_Code Injection - Fatal编程技术网

Windows 处理注射。窗户

Windows 处理注射。窗户,windows,code-injection,Windows,Code Injection,我知道如何使用系统调用将代码注入到其他进程中—只需使用GetModuleHandle获取模块句柄,并使用GetProcAddress获取进程地址即可。通过该地址,我可以将跳转指令写入函数。 但我需要注入到目标可执行文件的函数中。我在PE中有函数的偏移量,知道部分。如何计算运行时编写跳转指令所需的地址? 谢谢 模块句柄是模块开头的地址,因此如果您知道偏移量,您可以将它们添加到一起。模块句柄是模块开头的地址,因此如果您知道偏移量,您可以将它们添加到一起。谢谢!帮助很大:)如何将您的评论标记为答案?

我知道如何使用系统调用将代码注入到其他进程中—只需使用GetModuleHandle获取模块句柄,并使用GetProcAddress获取进程地址即可。通过该地址,我可以将跳转指令写入函数。 但我需要注入到目标可执行文件的函数中。我在PE中有函数的偏移量,知道部分。如何计算运行时编写跳转指令所需的地址?
谢谢

模块句柄是模块开头的地址,因此如果您知道偏移量,您可以将它们添加到一起。

模块句柄是模块开头的地址,因此如果您知道偏移量,您可以将它们添加到一起。谢谢!帮助很大:)如何将您的评论标记为答案?