如何将dll文件的导入功能修改为导出功能? [英] How to modify an imported function of dll file to exported function?

查看:123
本文介绍了如何将dll文件的导入功能修改为导出功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将dll文件的导入功能修改为导出功能,请帮助我完成此操作,我想使用OllyDbg对其进行修改,导入功能的哪个因素可以做到这一点(编辑导出功能)?谢谢.

I want to modify an imported function of dll file to exported function, please help me to do this, I want to use OllyDbg to modify it, which factor of imported function can do this (edit to exported function)? Thanks.

推荐答案

修改?!哇!正确地听自己说,这是没有道理的.如果将函数F从A导入到B,则该代码实际上不存在于B中.您将要修改什么?

现在,从B导出的任何东西的目的总是让F在其他地方被调用,比如说在C中.因此,请考虑1)在C中直接链接A并在C中调用F,2)创建一个"thunk"函数B中的函数F'',链接并在C中调用F''.由于在B中可见F,因为A链接到B,所以F''应该简单地使用具有相同参数的F调用,并透明地将调用返回给调用方F''.

—SA
Modify?! Wow! Listen to yourself properly to understand that it makes no sense. If you import a function F from A into B, the code does not physically exist in B. What are you going to modify?

Now, the purpose of having anything exported from B is always having F called somewhere else, let''s say, in C. So, consider 1) linking A in C directly and calling F in C, 2) creating a "thunk" function F'' in B, linking and calling F'' in C. As F is visible in B because A is linked to B, F'' should simply call F with the same very parameters and transparently return the call to the caller of F''.

—SA


这篇关于如何将dll文件的导入功能修改为导出功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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