Hello,
A program I'm trying to break in uses ObREgistercallBacks in the kernel with paras so I can't open it or debug it. What I'm trying to do is Hook ObReg.... and pass the second parameter to ObUnregister.... In order to get the HANDLE I've to hook it first: I tried this:
A program I'm trying to break in uses ObREgistercallBacks in the kernel with paras so I can't open it or debug it. What I'm trying to do is Hook ObReg.... and pass the second parameter to ObUnregister.... In order to get the HANDLE I've to hook it first: I tried this:
Code: Select all
The problem is how to install the hook, it seems the Table does not work on 64 bit win 7? O_o Is there a easier/better way of doing this anyways?#include "Hooks.h"
#include <ntddk.h>
typedef NTSTATUS (*_ObRegisterCallbacks)(
__in POB_CALLBACK_REGISTRATION CallBackRegistration,
__out PVOID *RegistrationHandle
);
_ObRegisterCallbacks OldObRegisterCallBacks;
NTSTATUS NewObRegisterCallbacks(
__in POB_CALLBACK_REGISTRATION CallBackRegistration,
__out PVOID *RegistrationHandle
)
{
ObUnRegisterCallbacks(RegistrationHandle);
return OldObRegisterCallBacks(CallBackRegistration,RegistrationHandle);
}
void InstallHooks()
{
}
void UninstallHooks()
{
}