Dll-Injector is a Windows dynamic-link library injection tool written in C++20. It can inject a .dll
file into a running process by searching its window title or create a new process with an injection.
Warning
The project does not contain building configuration files, the source code can be built manually with Visual Studio 2022.
The project need to configure on/for Windows 32-bit.
Dll-Injector [-f <proc-path> | <win-title>] <dll-path>
Inject a Dll into a Running Process
To inject a .dll
file into a running process, you need to specify the window title of the target process and the path of the .dll
file. If dll-path
is a relative path, it must be relative to the Dll-Injector.exe
.
Dll-Injector <win-title> <dll-path>
For example, inject the dllmain_msg.dll
(assume it is in the same directory as Dll-Injector) into Windows Calculator:
Dll-Injector Calculator dllmain_msg.dll
Create a New Process with an Injection
To create a new process with an injection, you must enable the -f
option firstly and then specify the paths of the target process and the .dll
file. If dll-path
is a relative path, it must be relative to the process file.
Dll-Injector -f <proc-path> <dll-path>
Code comments follow Doxygen specification.
The class diagram is created by PlantUML. See docs/class-diagram.plantuml
for more details.
Distributed under the GNU General Public License. See LICENSE
for more information.
@software{chenzs108_2021_4698332,
author = {Chen Zhenshuo and Liu Guowen},
title = {Zhuagenborn/Dll-Injector: v1.0.0},
month = apr,
year = 2021,
publisher = {Zenodo},
version = {v1.0.0},
doi = {10.5281/zenodo.4698332},
url = {https://doi.org/10.5281/zenodo.4698332}
}
-
Chen Zhenshuo
GitHub: https://github.com/czs108
E-Mail: [email protected]
WeChat: chenzs108
-
Liu Guowen
GitHub: https://github.com/lgw1995
E-Mail: [email protected]