揰掵佲 发表于 2021-2-25 17:33:37

【记录】win7下 CreateRemoteThread 失败的解决方法

接了一个注入的单,注入器是作为服务来进行注入的。
发现在win7系统下CreateRemoteThread 失败 返回0
GetLastError 返回8
查原因 很多说是 section机制的问题
后来用下面这个API解决了
.版本 2

.DLL命令 RtlCreateUserThread, 整数型, "ntdll.dll", "RtlCreateUserThread", 公开
    .参数 ProcessHandle, 整数型, , 进程句柄
    .参数 SecurityDescriptor, 整数型, , 0
    .参数 CreateSuspended, 整数型, , 0
    .参数 StackZeroBits, 整数型, , 0
    .参数 StackReserved, 整数型, , 0
    .参数 StackCommit, 整数型, , 0
    .参数 StartAddress, 整数型, , 子程序指针 开始地址
    .参数 StartParameter, 整数型, , 参数指针无参传0
    .参数 ThreadHandle, 整数型, 传址, 线程句柄 变量接收
    .参数 ClientID, 整数型, , 客户ID 传入0

页: [1]
查看完整版本: 【记录】win7下 CreateRemoteThread 失败的解决方法