You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
778 B
32 lines
778 B
2 years ago
|
// See https://aka.ms/new-console-template for more information
|
||
|
using QYDongDongTool;
|
||
|
using QYDongDongTool.Unitls;
|
||
|
using System.Diagnostics;
|
||
|
|
||
|
public class Program
|
||
|
{
|
||
|
|
||
|
public static void Main()
|
||
|
{
|
||
|
var list = new CSharpAPIs().GetAllDesktopWindows();
|
||
|
|
||
|
var windows = list.Where(c => c.szClassName == "DD_JM_Workbench_DLG").ToList();
|
||
|
|
||
|
windows.ForEach(info =>
|
||
|
{
|
||
|
|
||
|
foreach (ProcessModule module in Process.GetProcessById(info.ProcessId).Modules)
|
||
|
{
|
||
|
//检测是否已经注入
|
||
|
if (module.ModuleName.Contains("sendPhone.dll"))
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//注入dll
|
||
|
MP.Hook((int)info.ProcessId);
|
||
|
|
||
|
});
|
||
|
}
|
||
|
}
|