-
-
[求助]自己实现ZwWriteVirtualMemory出问题
-
发表于:
2012-8-16 00:22
4545
-
[求助]自己实现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];
}
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课