-
-
[求助]自己实现ZwWriteVirtualMemory出问题
-
发表于:
2012-8-16 00:22
4484
-
[求助]自己实现ZwWriteVirtualMemory出问题
//自定义写内存函数
void MyWriteProcessMemory(HANDLE hProcess, LPVOID lpBaseAddress, LPVOID lpBuffer,DWORD nSize, LPDWORD lpNumberOfBytesWritten)
{
ULONG WVM_Adress = (ULONG)::GetProcAddress(::GetModuleHandle(_T("Ntdll.dll")), "ZwWriteVirtualMemory") + 6;
__asm
{
mov ebx,[WVM_Adress];
mov edx,[ebx];
mov esp,ebp;
pop ebp;
mov eax, 0x115;
jmp [edx];
}
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!