#include <Warden.h>
uint32 _clientResponseTimer
Definition: Warden.h:132
uint32 _previousTimestamp
Definition: Warden.h:134
ClientWardenModule * _module
Definition: Warden.h:135
arena_t NULL
Definition: jemalloc_internal.h:624
bool _dataSent
Definition: Warden.h:133
uint8 _seed[16]
Definition: Warden.h:128
WorldSession * _session
Definition: Warden.h:125
uint8 _outputKey[16]
Definition: Warden.h:127
ARC4 _outputCrypto
Definition: Warden.h:130
ARC4 _inputCrypto
Definition: Warden.h:129
uint8 _inputKey[16]
Definition: Warden.h:126
bool _initialized
Definition: Warden.h:136
uint32 _checkTimer
Definition: Warden.h:131
ClientWardenModule * _module
Definition: Warden.h:135
arena_t NULL
Definition: jemalloc_internal.h:624
uint8 * CompressedData
Definition: Warden.h:90
bool _initialized
Definition: Warden.h:136
178 for (
uint8 i = 0; i < 5; ++i)
179 checkSum = checkSum ^ hash.
ints.ints[i];
uint32 ints[5]
Definition: Warden.cpp:168
Definition: Warden.cpp:158
uint8 bytes[20]
Definition: Warden.cpp:163
#define hash
Definition: private_namespace.h:186
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
uint8_t uint8
Definition: Define.h:152
void Warden::DecryptData |
( |
uint8 * |
buffer, |
|
|
uint32 |
length |
|
) |
| |
float length(float v)
Definition: vectorMath.h:208
ARC4 _inputCrypto
Definition: Warden.h:129
void UpdateData(int len, uint8 *data)
Definition: ARC4.cpp:47
void Warden::EncryptData |
( |
uint8 * |
buffer, |
|
|
uint32 |
length |
|
) |
| |
float length(float v)
Definition: vectorMath.h:208
ARC4 _outputCrypto
Definition: Warden.h:130
void UpdateData(int len, uint8 *data)
Definition: ARC4.cpp:47
virtual void Warden::HandleData |
( |
ByteBuffer & |
buff | ) |
|
|
pure virtual |
virtual void Warden::HandleHashResult |
( |
ByteBuffer & |
buff | ) |
|
|
pure virtual |
virtual void Warden::InitializeModule |
( |
| ) |
|
|
pure virtual |
146 if (checksum != newChecksum)
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
static uint32 BuildChecksum(const uint8 *data, uint32 length)
Definition: Warden.cpp:173
uint32_t uint32
Definition: Define.h:150
float length(float v)
Definition: vectorMath.h:208
204 std::stringstream duration;
206 std::string accountName;
208 std::stringstream banReason;
209 banReason <<
"Warden Anticheat Violation";
212 banReason <<
": " << check->
Comment <<
" (CheckId: " << check->
CheckId <<
")";
214 sWorld->BanAccount(
BAN_ACCOUNT, accountName, duration.str(), banReason.str(),
"Server");
Definition: WardenCheckMgr.h:29
Definition: WardenCheckMgr.h:31
enum WardenActions Action
Definition: WardenCheckMgr.h:43
uint32 GetAccountId() const
Definition: WorldSession.h:922
#define sWorld
Definition: World.h:887
void KickPlayer()
Kick a player out of the World.
Definition: WorldSession.cpp:646
static bool GetName(uint32 accountId, std::string &name)
Definition: AccountMgr.cpp:303
Definition: SharedDefines.h:4535
std::string Comment
Definition: WardenCheckMgr.h:41
uint16 CheckId
Definition: WardenCheckMgr.h:42
WardenActions
Definition: WardenCheckMgr.h:27
WorldSession * _session
Definition: Warden.h:125
Definition: WardenCheckMgr.h:30
virtual void Warden::RequestData |
( |
| ) |
|
|
pure virtual |
virtual void Warden::RequestHash |
( |
| ) |
|
|
pure virtual |
void Warden::RequestModule |
( |
| ) |
|
uint8 ModuleId[16]
Definition: Warden.h:65
ClientWardenModule * _module
Definition: Warden.h:135
uint8 Id[16]
Definition: Warden.h:87
uint32 CompressedSize
Definition: Warden.h:89
uint8 Key[16]
Definition: Warden.h:88
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
uint8 ModuleKey[16]
Definition: Warden.h:66
uint8 Command
Definition: Warden.h:64
uint32 Size
Definition: Warden.h:67
void EncryptData(uint8 *buffer, uint32 length)
Definition: Warden.cpp:137
WorldSession * _session
Definition: Warden.h:125
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
Definition: WorldSession.cpp:211
uint8_t uint8
Definition: Define.h:152
Definition: Opcodes.h:1623
Definition: WorldPacket.h:26
void Warden::SendModuleToClient |
( |
| ) |
|
61 burstSize = sizeLeft < 500 ? sizeLeft : 500;
65 sizeLeft -= burstSize;
70 pkt1.append((
uint8*)&packet, burstSize + 3);
ClientWardenModule * _module
Definition: Warden.h:135
uint32 CompressedSize
Definition: Warden.h:89
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
uint8 Command
Definition: Warden.h:72
uint8 * CompressedData
Definition: Warden.h:90
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151
void EncryptData(uint8 *buffer, uint32 length)
Definition: Warden.cpp:137
WorldSession * _session
Definition: Warden.h:125
void SendPacket(WorldPacket const *packet, bool forced=false)
Send a packet to the client.
Definition: WorldSession.cpp:211
uint8_t uint8
Definition: Define.h:152
uint16 DataSize
Definition: Warden.h:73
uint8 Data[500]
Definition: Warden.h:74
Definition: Opcodes.h:1623
Definition: WorldPacket.h:26
101 _previousTimestamp = currentTimestamp;
107 if (maxClientResponseDelay > 0)
112 TC_LOG_WARN(
"warden",
"%s (latency: %u, IP: %s) exceeded Warden module response delay for more than %s - disconnecting client",
uint32 _clientResponseTimer
Definition: Warden.h:132
uint32 _previousTimestamp
Definition: Warden.h:134
std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly)
Definition: Util.cpp:109
uint32 getMSTime()
Definition: Timer.h:24
bool _dataSent
Definition: Warden.h:133
#define sWorld
Definition: World.h:887
virtual void RequestData()=0
void KickPlayer()
Kick a player out of the World.
Definition: WorldSession.cpp:646
std::string const & GetRemoteAddress() const
Definition: WorldSession.h:932
uint32_t uint32
Definition: Define.h:150
WorldSession * _session
Definition: Warden.h:125
uint32 GetLatency() const
Definition: WorldSession.h:1063
bool _initialized
Definition: Warden.h:136
std::string GetPlayerInfo() const
Definition: WorldSession.cpp:195
#define TC_LOG_WARN(filterType__,...)
Definition: Log.h:204
uint32 _checkTimer
Definition: Warden.h:131
uint32 Warden::_clientResponseTimer |
|
private |
bool Warden::_initialized |
|
private |
ARC4 Warden::_inputCrypto |
|
private |
uint8 Warden::_inputKey[16] |
|
private |
ARC4 Warden::_outputCrypto |
|
private |
uint8 Warden::_outputKey[16] |
|
private |
uint32 Warden::_previousTimestamp |
|
private |
The documentation for this class was generated from the following files: