AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Warden.h File Reference
#include "ARC4.h"
#include "AuthDefines.h"
#include "ByteBuffer.h"
#include "WardenPayloadMgr.h"
#include <array>

Go to the source code of this file.

Classes

struct  WardenModuleUse
 
struct  WardenModuleTransfer
 
struct  WardenHashRequest
 
struct  ClientWardenModule
 
class  Warden
 

Enumerations

enum  WardenOpcodes {
  WARDEN_CMSG_MODULE_MISSING = 0 ,
  WARDEN_CMSG_MODULE_OK = 1 ,
  WARDEN_CMSG_CHEAT_CHECKS_RESULT = 2 ,
  WARDEN_CMSG_MEM_CHECKS_RESULT = 3 ,
  WARDEN_CMSG_HASH_RESULT = 4 ,
  WARDEN_CMSG_MODULE_FAILED = 5 ,
  WARDEN_SMSG_MODULE_USE = 0 ,
  WARDEN_SMSG_MODULE_CACHE = 1 ,
  WARDEN_SMSG_CHEAT_CHECKS_REQUEST = 2 ,
  WARDEN_SMSG_MODULE_INITIALIZE = 3 ,
  WARDEN_SMSG_MEM_CHECKS_REQUEST = 4 ,
  WARDEN_SMSG_HASH_REQUEST = 5
}
 
enum  WardenCheckType {
  MEM_CHECK = 0xF3 ,
  PAGE_CHECK_A = 0xB2 ,
  PAGE_CHECK_B = 0xBF ,
  MPQ_CHECK = 0x98 ,
  LUA_EVAL_CHECK = 139 ,
  DRIVER_CHECK = 0x71 ,
  TIMING_CHECK = 0x57 ,
  PROC_CHECK = 0x7E ,
  MODULE_CHECK = 0xD9
}
 

Enumeration Type Documentation

◆ WardenCheckType

Enumerator
MEM_CHECK 
PAGE_CHECK_A 
PAGE_CHECK_B 
MPQ_CHECK 
LUA_EVAL_CHECK 
DRIVER_CHECK 
TIMING_CHECK 
PROC_CHECK 
MODULE_CHECK 
47{
48 MEM_CHECK = 0xF3, // 243: byte moduleNameIndex + uint Offset + byte Len (check to ensure memory isn't modified)
49 PAGE_CHECK_A = 0xB2, // 178: uint Seed + byte[20] SHA1 + uint Addr + byte Len (scans all pages for specified hash)
50 PAGE_CHECK_B = 0xBF, // 191: uint Seed + byte[20] SHA1 + uint Addr + byte Len (scans only pages starts with MZ+PE headers for specified hash)
51 MPQ_CHECK = 0x98, // 152: byte fileNameIndex (check to ensure MPQ file isn't modified)
52 LUA_EVAL_CHECK = 139, // evaluate arbitrary Lua check
53 DRIVER_CHECK = 0x71, // 113: uint Seed + byte[20] SHA1 + byte driverNameIndex (check to ensure driver isn't loaded)
54 TIMING_CHECK = 0x57, // 87: empty (check to ensure GetTickCount() isn't detoured)
55 PROC_CHECK = 0x7E, // 126: uint Seed + byte[20] SHA1 + byte moluleNameIndex + byte procNameIndex + uint Offset + byte Len (check to ensure proc isn't detoured)
56 MODULE_CHECK = 0xD9, // 217: uint Seed + byte[20] SHA1 (check to ensure module isn't injected)
57};
@ PROC_CHECK
Definition: Warden.h:55
@ DRIVER_CHECK
Definition: Warden.h:53
@ PAGE_CHECK_A
Definition: Warden.h:49
@ PAGE_CHECK_B
Definition: Warden.h:50
@ LUA_EVAL_CHECK
Definition: Warden.h:52
@ MPQ_CHECK
Definition: Warden.h:51
@ MEM_CHECK
Definition: Warden.h:48
@ TIMING_CHECK
Definition: Warden.h:54
@ MODULE_CHECK
Definition: Warden.h:56

◆ WardenOpcodes

Enumerator
WARDEN_CMSG_MODULE_MISSING 
WARDEN_CMSG_MODULE_OK 
WARDEN_CMSG_CHEAT_CHECKS_RESULT 
WARDEN_CMSG_MEM_CHECKS_RESULT 
WARDEN_CMSG_HASH_RESULT 
WARDEN_CMSG_MODULE_FAILED 
WARDEN_SMSG_MODULE_USE 
WARDEN_SMSG_MODULE_CACHE 
WARDEN_SMSG_CHEAT_CHECKS_REQUEST 
WARDEN_SMSG_MODULE_INITIALIZE 
WARDEN_SMSG_MEM_CHECKS_REQUEST 
WARDEN_SMSG_HASH_REQUEST 
28{
29 // Client->Server
33 WARDEN_CMSG_MEM_CHECKS_RESULT = 3, // only sent if MEM_CHECK bytes doesn't match
35 WARDEN_CMSG_MODULE_FAILED = 5, // this is sent when client failed to load uploaded module due to cache fail
36
37 // Server->Client
42 WARDEN_SMSG_MEM_CHECKS_REQUEST = 4, // byte len; while(!EOF) { byte unk(1); byte index(++); string module(can be 0); int offset; byte len; byte[] bytes_to_compare[len]; }
44};
@ WARDEN_CMSG_MODULE_MISSING
Definition: Warden.h:30
@ WARDEN_SMSG_MEM_CHECKS_REQUEST
Definition: Warden.h:42
@ WARDEN_CMSG_HASH_RESULT
Definition: Warden.h:34
@ WARDEN_CMSG_MODULE_FAILED
Definition: Warden.h:35
@ WARDEN_SMSG_HASH_REQUEST
Definition: Warden.h:43
@ WARDEN_CMSG_CHEAT_CHECKS_RESULT
Definition: Warden.h:32
@ WARDEN_CMSG_MODULE_OK
Definition: Warden.h:31
@ WARDEN_SMSG_MODULE_CACHE
Definition: Warden.h:39
@ WARDEN_SMSG_MODULE_INITIALIZE
Definition: Warden.h:41
@ WARDEN_SMSG_MODULE_USE
Definition: Warden.h:38
@ WARDEN_CMSG_MEM_CHECKS_RESULT
Definition: Warden.h:33
@ WARDEN_SMSG_CHEAT_CHECKS_REQUEST
Definition: Warden.h:40