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
使用MIT协议,请参考LICENSE文件。