-
Notifications
You must be signed in to change notification settings - Fork 22
/
Bypass.h
37 lines (30 loc) · 1.09 KB
/
Bypass.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
#pragma once
#include "Signature/Scanner.h"
#include "Utils/Utils.h"
#include "Loadup/Loadup.h"
#include "Vuln/Vuln.h"
namespace Bypass
{
enum BypassStatus : int {
FAILED_LOADINGVULN,
FAILED_DISABLEPG,
FAILED_DISABLEDSE,
FAILED_LOADINGCHEATDRV,
SUCCESS,
};
static char SeValidateImageDataOG[8] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; // Not Needed unless its VGK.
static char SeValidateImageHeaderOG[8] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; // Not Needed unless its VGK.
static ULONG64 SeValidateImageDataOffset;
static ULONG64 SeValidateImageHeaderOffset;
static ULONG64 RetOffset;
static ULONG64 NtoskrnlBaseAddress;
static ULONG64 PatchgaurdValueOffset;
static ULONG64 PatchgaurdOffset;
static HANDLE VulnurableDriverHandle;
bool Init();
bool DisableDSE();
bool DisablePG();
bool LoadVulnurableDriver(std::string PdFwKrnlPath, std::string PdFwKrnlServiceName);
BypassStatus LoadCheatDriver(std::string DriverPath, std::string DriverServiceName, std::string PdFwKrnlPath, std::string PdFwKrnlServiceName);
std::string BypassStatusToString(BypassStatus Status);
}