Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
hook.hpp
Go to the documentation of this file.
1#pragma once
2#include <Windows.h>
3#include "def.h"
4#include <detours/detours.h>
5
12NTSTATUS NTAPI Hooked_NtWriteVirtualMemory(
13 HANDLE ProcessHandle,
14 PVOID BaseAddress,
15 PVOID Buffer,
16 SIZE_T NumberOfBytesToWrite,
17 PSIZE_T NumberOfBytesWritten
18);
19
24NTSTATUS NTAPI Hooked_NtModifyBootEntry(PBOOT_ENTRY BootEntry);
25
39 HANDLE SectionHandle,
40 HANDLE ProcessHandle,
41 PVOID* BaseAddress,
42 PLARGE_INTEGER SectionOffset,
43 PSIZE_T ViewSize,
44 ULONG AllocationType,
45 ULONG PageProtection,
46 PMEM_EXTENDED_PARAMETER ExtendedParameters,
47 ULONG ExtendedParameterCount
48);
49
51VOID PlaceHooks();
52
54VOID UnHook();
55
VOID UnHook()
The UnHook function removes the hooks from the NTDLL functions.
Definition hook.cpp:97
NTSTATUS NTAPI Hooked_NtWriteVirtualMemory(HANDLE ProcessHandle, PVOID BaseAddress, PVOID Buffer, SIZE_T NumberOfBytesToWrite, PSIZE_T NumberOfBytesWritten)
The Hooked_NtWriteVirtualMemory function is a function that hooks the NtWriteVirtualMemory function.
Definition hook.cpp:18
NTSTATUS NTAPI Hooked_NtModifyBootEntry(PBOOT_ENTRY BootEntry)
The Hooked_NtModifyBootEntry function is a function that hooks the NtModifyBootEntry function.
Definition hook.cpp:35
VOID PlaceHooks()
The PlaceHooks function places the hooks on the NTDLL functions.
Definition hook.cpp:72
NTSTATUS NTAPI Hooked_NtMapViewOfSectionEx(HANDLE SectionHandle, HANDLE ProcessHandle, PVOID *BaseAddress, PLARGE_INTEGER SectionOffset, PSIZE_T ViewSize, ULONG AllocationType, ULONG PageProtection, PMEM_EXTENDED_PARAMETER ExtendedParameters, ULONG ExtendedParameterCount)
The Hooked_NtMapViewOfSectionEx function is a function that hooks the NtMapViewOfSectionEx function.
The BOOT_ENTRY structure represents a boot entry in the boot configuration database....
Definition def.h:7