远程线程注入类模块

易语言 2020-07-17 17:35:59

远程线程注入类模块

.如果真 (hProcess = 0 或 代码数据 = { })
返回 (假)
.如果真结束
Ptr = 远程申请内存 (代码数据)
.如果真 (Ptr = 0)
返回 (假)
.如果真结束
hThread = 私_创建远程线程 (Ptr, 0)
ret = _WaitForSingleObject (hThread, 超时时间)
远程释放内存 (Ptr) ' 采用新的ShellCode,不会释放后在函数执行完ShellCode丢失的问题
.如果真 (ret ≠ 0)
返回 (假)
.如果真结束
_GetExitCodeThread (hThread, 返回结果)
_CloseHandle (hThread)