-
Notifications
You must be signed in to change notification settings - Fork 22
/
entry.cpp
39 lines (32 loc) · 1.04 KB
/
entry.cpp
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
39
#include <ntdef.h>
#include <ntifs.h>
#include <ntimage.h>
#include <windef.h>
#include "definitions.h"
#include "encrypt.h"
#include "crt.h"
#include "utils.h"
#include "eac.h"
// https://www.unknowncheats.me/forum/anti-cheat-bypass/503052-easy-anti-cheat-kernel-packet-fucker.html
auto DriverEntry( ) -> NTSTATUS
{
/*
making this run when eac driver is loaded little paster
*/
const auto easy_anti_cheat = utils::get_kernel_module( e( "EasyAntiCheat.sys" ) );
if ( !easy_anti_cheat.base || !easy_anti_cheat.size )
{
DbgPrintEx( 0, 0, e( "EasyAntiCheat.sys is not loaded." ) );
return STATUS_UNSUCCESSFUL;
}
DbgPrintEx( 0, 0,e( "found EasyAntiCheat.sys: 0x%llx with size of 0x%llx" ), easy_anti_cheat.base, easy_anti_cheat.size );
if ( eac::hook_allocation( easy_anti_cheat.base, easy_anti_cheat.size ) )
{
DbgPrintEx( 0, 0, e( "successfully hooked EasyAntiCheat's allocation" ) );
}
else
{
DbgPrintEx( 0, 0, e( "failed hooking EasyAntiCheat's allocation" ) );
}
return STATUS_SUCCESS;
}