如何重定向system-dll的引用? [英] how can redirect system-dll’s reference ?

查看:57
本文介绍了如何重定向system-dll的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


现在,让我讲述我的问题,在运行应用程序时,应用程序加载系统dll以使用其众所周知的导入/导出fns.that,我认为如此..

hi , now ,let me tell about my problem ,While run an application ,application loads system dlls to use its import/export fns.thats well known to all ,i think so..

在这里,我想通过更改导入的dll名称来重定向那个依赖的应用程序dll(导入的dll)。现在它的引用会改变,那个时候我将复制原始的dll(system32) )并在我的应用程序指令中粘贴名称更改,这里的工作
适用于某些dll ..不适用于所有dll ...

here ,i want to redirect that depended dlls of application(imported dlls) by changing imported dll name .Now its reference will change ,that time i will copy the original dll(system32) and paste with name change in my application directry ,here its work fine for some dlls..its not work for all dlls...

例如,如果应用程序有advapi32 .dll,kernel32.dll意味着,我将此导入的dll名称更改为Ddvapi32.dll,Dernel32.dll,之后必须将其引用更改为新的dll名称,那时我将复制原始dll并将其粘贴到应用程序
目录名称已更改...这里是advapi32.dll的工作,而不是gdi32.dll& ntdll.dll,请帮帮我,还有其他任何参考都要改变吗?。谢谢..

Ex,If Applications have advapi32.dll,kernel32.dll means ,i will change this imported dll name into Ddvapi32.dll,Dernel32.dll ,after that its reference must be change into new dll name,that time i will copy the original dll &paste it in the application directory with name changed...here its work for advapi32.dll ,not to gdi32.dll & ntdll.dll ,please help me ,there is any other reference is to be change?.thanks..

推荐答案

你不能做这个。软件按名称加载DLL,因此重命名它们会阻止软件加载它们。

You can't do this. Software loads DLL's by name so renaming them would stop software loading them.

http://msdn.microsoft.com/en-us/library/ms684175(v = vs.85).ASPX

< a href ="http://msdn.microsoft.com/en-us/library/ms684175(v=vs.85).ASPX"> 如果您希望通过用自己的DLL替换加载的DLL来注入代码代码有这样的方法,但不建议rootkit操作系统。

If you wish to inject code by replacing a loaded DLL with your own code there are ways of doing this but it is not recommended to rootkit the OS.

你为什么要这样做?也许有更好的方法?

Why are you trying to do this? Maybe there is a better way?

为什么你不能将DLL复制到你的程序文件夹中。 LoadLibrary在我认为的系统文件夹之前查看当前工作目录。这被称为并排加载并防止"DLL地狱"

Why could you not copy the DLL's into your programs folder. The LoadLibrary looks in the current working directory before the system folders I think. This is known as side-by-side loading and prevents "DLL hell"


这篇关于如何重定向system-dll的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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