Skip to content
/ LyInject Public

一款驱动级DLL注入工具,可强制将DLL文件插入到任意应用层进程内。 A driver level DLL injection tool, which can forcibly insert DLL files into any application layer process.

License

Notifications You must be signed in to change notification settings

sesyi/LyInject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lyinject 驱动级DLL注入

本注入驱动程序目前只支持Windows 10版本18363.592具体版本信息如下,请核对是否支持否则不生效,请将LyInject驱动程序与ConsoleApplication程序放在同一目录下否则无法加载。

image

当需要注入DLL时只需要调用DriveControl.InjectDll传入参数即可,详细实现代码请参考ConsoleApplication中的源代码,如下实现了将msg.dll强行插入到msgbox.exe进程内。

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <Windows.h>

#pragma comment(lib,"user32.lib")
#pragma comment(lib,"advapi32.lib")

int main(int argc, char *argv[])
{
	cDrvCtrl DriveControl;
	DriveControl.InstallAndRun();

	// 注入DLL到程序,支持32位与64位注入
	DriveControl.InjectDll("msgbox.exe", "c://msg.dll");

	DriveControl.RemoveAndStop();

	system("pause");
	return 0;
}

运行注入程序即可弹出DLL提示框。

image

GitHub 项目地址: https://github.com/lyshark/LyInject

About

一款驱动级DLL注入工具,可强制将DLL文件插入到任意应用层进程内。 A driver level DLL injection tool, which can forcibly insert DLL files into any application layer process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages