Skip to content

Latest commit

 

History

History
88 lines (56 loc) · 2.08 KB

File metadata and controls

88 lines (56 loc) · 2.08 KB

Windows Dynamic-Link Library Injector

C++ Windows License

翻译

简介

Dll-Injector是一款使用C++20编写的Windows动态链接库注入工具。它可以通过搜索窗口标题将.dll文件注入至运行中的进程,或在创建新进程时进行注入。

开始

警告

项目不包含工程配置文件,源代码可以使用Visual Studio 2022手动构建。

前置条件

该项目需要编译为Windows 32位版本。

使用

Dll-Injector [-f <proc-path> | <win-title>] <dll-path>

将动态链接库注入至运行中的进程

对运行中的进程进行注入时,需要指定目标进程的窗口标题.dll文件的路径。如果dll-path参数是一个相对路径,则其必须相对于Dll-Injector.exe文件。

Dll-Injector <win-title> <dll-path>

例如,将dllmain_msg.dll(假定其位于Dll-Injector目录)注入Windows Calculator进程:

Dll-Injector Calculator dllmain_msg.dll

创建新进程时进行注入

若需要在创建新进程时进行注入,必须先设置-f选项,然后再指定目标进程和.dll文件的路径。如果dll-path参数是一个相对路径,则其必须相对于进程文件。

Dll-Injector -f <proc-path> <dll-path>

文档

代码注释采用Doxygen规范。

类图

classDiagram

class Injector {
    <<interface>>
    +Inject()
}

class RunningInjector {
    -string win_title
    -string dll_path
}

Injector <|.. RunningInjector

class StartupInjector {
    -string proc_path
    -string dll_path

    +Running() bool
    +Terminate()
}

Injector <|.. StartupInjector
Loading

许可证

使用MIT协议,请参考LICENSE文件。