資源簡介
C# DLL 進程注入示例。C# DLL 進程注入示例。C# DLL 進程注入示例。
代碼片段和文件信息
#include?
#include?
#include?
#include?“resource.h“
DWORD?FindTarget(?LPCTSTR?lpszProcess?)
{
????DWORD?dwRet?=?0;
????HANDLE?hSnapshot?=?CreateToolhelp32Snapshot(?TH32CS_SNAPPROCESS?0?);
????PROCESSENTRY32?pe32;
????pe32.dwSize?=?sizeof(?PROCESSENTRY32?);
????Process32First(?hSnapshot?&pe32?);
????do
????{
????????if?(?lstrcmpi(?pe32.szExeFile?lpszProcess?)?==?0?)
????????{
????????????dwRet?=?pe32.th32ProcessID;
????????????break;
????????}
????}?while?(?Process32Next(?hSnapshot?&pe32?)?);
????CloseHandle(?hSnapshot?);
????return?dwRet;
}
BOOL?RemoteLoadLibrary(?DWORD?dwProcessID?LPCSTR?lpszDll?)
{
????//?打開目標進程
????HANDLE?hProcess?=?OpenProcess(?PROCESS_CREATE_THREAD?|?PROCESS_VM_OPERATION?|?PROCESS_VM_WRITE?FALSE?dwP
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????9216??2009-09-03?15:14??DllInject\DllInject\bin\Debug\DllInject.exe
?????文件??????24064??2009-09-03?15:14??DllInject\DllInject\bin\Debug\DllInject.pdb
?????文件??????14328??2009-09-03?15:15??DllInject\DllInject\bin\Debug\DllInject.vshost.exe
?????文件????????490??2007-07-21?02:33??DllInject\DllInject\bin\Debug\DllInject.vshost.exe.manifest
?????文件???????4381??2009-09-03?15:14??DllInject\DllInject\DllInject.csproj
?????文件???????3667??2009-09-03?15:00??DllInject\DllInject\Form1.cs
?????文件???????2092??2009-09-03?11:35??DllInject\DllInject\Form1.Designer.cs
?????文件???????5814??2009-09-03?11:35??DllInject\DllInject\Form1.resx
?????文件????????642??2009-09-03?15:15??DllInject\DllInject\obj\Debug\DllInject.csproj.FileListAbsolute.txt
?????文件????????847??2009-09-03?11:41??DllInject\DllInject\obj\Debug\DllInject.csproj.GenerateResource.Cache
?????文件???????9216??2009-09-03?15:14??DllInject\DllInject\obj\Debug\DllInject.exe
?????文件????????180??2009-09-03?15:14??DllInject\DllInject\obj\Debug\DllInject.Form1.resources
?????文件??????24064??2009-09-03?15:14??DllInject\DllInject\obj\Debug\DllInject.pdb
?????文件????????180??2009-09-03?15:14??DllInject\DllInject\obj\Debug\DllInject.Properties.Resources.resources
?????文件????????490??2009-09-03?11:13??DllInject\DllInject\Program.cs
?????文件???????1358??2009-09-03?11:13??DllInject\DllInject\Properties\AssemblyInfo.cs
?????文件???????2868??2009-09-03?11:13??DllInject\DllInject\Properties\Resources.Designer.cs
?????文件???????5612??2009-09-03?11:13??DllInject\DllInject\Properties\Resources.resx
?????文件???????1094??2009-09-03?11:13??DllInject\DllInject\Properties\Settings.Designer.cs
?????文件????????249??2009-09-03?11:13??DllInject\DllInject\Properties\Settings.settings
?????文件????????510??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\DLL\DLL.CPP
?????文件???????4085??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\DLL\DLL.dsp
?????文件??????40960??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\DLL.dll
?????文件????????728??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\RemoteDLL.dsw
?????文件??????40960??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Target.exe
?????文件????????638??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Virus\resource.h
?????文件???????5981??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Virus\Virus.cpp
?????文件???????4063??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Virus\Virus.dsp
?????文件???????2536??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Virus\Virus.rc
?????文件??????40960??2009-09-03?15:12??DllInject\DllInject\remotedll\RemoteDLL\Virus.exe
............此處省略18個文件信息
評論
共有 條評論