forked from exotikcheat/Kernel_VADInjector
-
Notifications
You must be signed in to change notification settings - Fork 13
/
hide.h
41 lines (18 loc) · 1.02 KB
/
hide.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <ntifs.h>
#define PIDDB_LOCK_PATTERN "\x48\x8D\x0D\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x4C\x8B\x8C\x24\x00\x00\x00\x00\x48\x8D\x4C\x24\x00\x48\x8B\xD6\xE8\x00\x00\x00\x00\x8B\xD8"
#define PIDDB_LOCK_MASK "xxx????x????xxxx????xxxx?xxxx????xx"
#define PIDDB_TABLE_PATTERN "\x48\x8D\x0D\x00\x00\x00\x00\xE8\x00\x00\x00\x00\x48\x8D\x1D\x00\x00\x00\x00\x48\x85\xC0\x0F"
#define PIDDB_TABLE_MASK "xxx????x????xxx????xxxx"
#define MMU_PATTERN "\x4C\x8B\x15\x00\x00\x00\x00\x4C\x8B\xC9"
#define MMU_MASK "xxx????xxx"
#define MML_PATTERN "\x8B\x05\x00\x00\x00\x00\x83\xF8\x32"
#define MML_MASK "xx????xxx"
#define CI_DLL_KERNEL_HASH_BUCKET_PATTERN "\x48\x8B\x1D\x00\x00\x00\x00\xEB\x00\xF7\x43\x40\x00\x20\x00\x00"
#define CI_DLL_KERNEL_HASH_BUCKET_MASK "xxx????x?xxxxxxx"
namespace Hide {
NTSTATUS HideEverything(UNICODE_STRING DriverName);
BOOLEAN FindPoolTable(uintptr_t* PoolBigPageTable, SIZE_T* PoolBigPageTableSize, PVOID ModuleBase);
BOOLEAN NullPfn(PMDL mdl);
NTSTATUS Hide(PVOID BigPoolAddress);
}