-
-
[己解决]关于HOOK NtReadVirtualMemory
-
发表于:
2012-2-5 09:40
6249
-
[己解决]关于HOOK NtReadVirtualMemory
已经成功HOOK了,但是我想输出BaseAddress和BufferLength值不对。。。
我记得好像这些是内核地址,怎么转换才能正确输出。
#pragma PAGEDCODE
extern "C" NTSTATUS __declspec(naked) __stdcall HookNtReadVirtualMemory(
IN HANDLE ProcessHandle,
IN PVOID BaseAddress,
OUT PVOID Buffer,
IN ULONG BufferLength,
OUT PULONG ReturnLength OPTIONAL
)
{
KdPrint(("=== Addr:%d Size:%d ===", (int*)BaseAddress, (int*)BufferLength));
__asm
{
push 0x1c
push 0x804daef0
mov eax, pfnRealNtReadVirtualMemory add eax, 7
jmp eax
}
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!