怎么做dll注入器? [英] How to do a dll injector?
问题描述
大家好...我是编码新手(我有点C#,C ++和VB),我想制作一个dll注入器,可以通过在文本中写入过程名称来选择该过程框,浏览dll文件,手动注入和自动注入单选按钮,注入后关闭复选框,并显示已浏览dll的列表框(我可以将其清除,删除所选内容),然后将所有dll注入列表框中. >
有人可以给我发送代码吗?如果可能,在VC ++ 2008/2010,VC#2008或VB 2008中.
对不起,我的英语语言,我是巴西人,我正在尝试学习英语.
谢谢大家.
Hey guys... I''m new at coding (i know a little bit of C#, C++ and VB) and I want to make a dll injector, that I can select the process by writing process name in a text box, browse the dll file, manual injection and automatic injection radio buttons, close after injection checkbox, and a list box of browsed dll (that I can clean all, remove selected) and inject all the dlls in the list box.
Can anyone send me the code for that? If possible, in VC++ 2008/2010, VC# 2008 or VB 2008.
Sorry for my English, I''m Brazilian and I''m trying to learn English.
Thanks for all.
推荐答案
您不能使用C#或VB.NET或任何其他托管代码语言来进行DLL注入.为什么?因为.NET CLR不支持执行此操作所需的导出.
您可以使用C或C ++甚至是Intel汇编程序进行DLL注入(如果您陷入了受虐狂).
但是,如果您是编程的新手,那么这个项目很容易让您尝试.这需要对Windows内部构件有深入的了解.
You cannot do DLL Injection with C# or VB.NET, or any other managed code language for that matter. Why? Because the .NET CLR doesn''t support the exports required to do it.
You can do DLL Injection with C or C++ or even Intel Assembler (if your into sadomasochism that is).
But, if you''re new to programming, this project is WAY to deep for you to be attempting. This requires in-depth knowledge of Windows internals.
阅读以下文章.
将代码注入另一个进程的三种方法
使用CreateRemoteThread的更完整的DLL注入解决方案
显示了API挂钩
Read the following articles.
Three Ways to Inject Your Code into Another Process
A More Complete DLL Injection Solution Using CreateRemoteThread
API hooking revealed
这篇关于怎么做dll注入器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!