Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuagenborn/windows-dll-injector
💉 A Windows dynamic-link library injection tool written in C++20. It can inject a dynamic-link library into a running process by its window title or create a new process with an injection.
https://github.com/zhuagenborn/windows-dll-injector
cpp20 cybersecurity dll-inection malware windows
Last synced: about 2 hours ago
JSON representation
💉 A Windows dynamic-link library injection tool written in C++20. It can inject a dynamic-link library into a running process by its window title or create a new process with an injection.
- Host: GitHub
- URL: https://github.com/zhuagenborn/windows-dll-injector
- Owner: Zhuagenborn
- License: mit
- Created: 2020-10-09T02:28:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T13:17:25.000Z (3 months ago)
- Last Synced: 2025-01-24T05:06:49.133Z (9 days ago)
- Topics: cpp20, cybersecurity, dll-inection, malware, windows
- Language: C++
- Homepage:
- Size: 400 KB
- Stars: 66
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# *Windows* Dynamic-Link Library Injector
![C++](docs/badges/C++.svg)
[![Windows](docs/badges/Microsoft-Windows.svg)](https://www.microsoft.com/en-ie/windows)
![License](docs/badges/License-MIT.svg)## 翻译
- [English](https://github.com/Zhuagenborn/Windows-DLL-Injector/blob/main/README.md)
- [简体中文](https://github.com/Zhuagenborn/Windows-DLL-Injector/blob/main/README-CN.md)## 简介
***Dll-Injector***是一款使用*C++20*编写的***Windows*动态链接库**注入工具。它可以通过搜索窗口标题将`.dll`文件注入至运行中的进程,或在创建新进程时进行注入。
## 开始
**警告**
> 项目不包含工程配置文件,源代码可以使用*Visual Studio 2022*手动构建。
### 前置条件
该项目需要编译为***Windows* 32位**版本。
## 使用
```console
Dll-Injector [-f | ]
```**将动态链接库注入至运行中的进程**
对运行中的进程进行注入时,需要指定目标进程的*窗口标题*和`.dll`文件的*路径*。如果`dll-path`参数是一个相对路径,则其必须相对于`Dll-Injector.exe`文件。
```console
Dll-Injector
```例如,将`dllmain_msg.dll`(假定其位于*Dll-Injector*目录)注入*Windows Calculator*进程:
```console
Dll-Injector Calculator dllmain_msg.dll
```**创建新进程时进行注入**
若需要在创建新进程时进行注入,必须先设置`-f`选项,然后再指定目标进程和`.dll`文件的*路径*。如果`dll-path`参数是一个相对路径,则其必须相对于进程文件。
```console
Dll-Injector -f
```## 文档
代码注释采用[*Doxygen*](https://www.doxygen.nl)规范。
### 类图
```mermaid
classDiagramclass Injector {
<>
+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`文件。