|
注入到新线程的典型流程 |
CreateRemoteThread | 整数型 | | |
kernel32.dll | |
CreateRemoteThread | |
hProcess | 整数型 | | | lpThreadAttributes | 整数型 | | | dwStackSize | 整数型 | | | lpStartAddress | 整数型 | | | lpParameter | 整数型 | | | dwCreationFlags | 整数型 | | | lpThreadId | 整数型 | | |
|
注入DLL到新线程 | | | |
目标进程ID | 整数型 | | | | DLL路径 | 文本型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | hProcess | 整数型 | | | pMem | 整数型 | | | ThreadId | 整数型 | | |
hProcess = OpenProcess_ (2035711, 假, 目标进程ID ) pMem = VirtualAllocEx_ (hProcess, 0, 取文本长度 (DLL路径 ) + 1, 4096, 4 ) WriteProcessMemory_ (hProcess, pMem, DLL路径, 取文本长度 (DLL路径 ) + 1, 0 ) CreateRemoteThread (hProcess, 0, 0, GetProcAddress_ (GetModuleHandleA_ ("kernel32.dll" ), "LoadLibraryA" ), pMem, 0, ThreadId )
|
|