![]() |
TrinityCore
|
#include <WardenMac.h>
Inheritance diagram for WardenMac:Public Member Functions | |
| WardenMac () | |
| ~WardenMac () | |
| void | Init (WorldSession *session, SessionKey const &k) override |
| void | InitializeModuleForClient (ClientWardenModule &module) override |
| void | InitializeModule () override |
| void | RequestHash () override |
| void | HandleHashResult (ByteBuffer &buff) override |
| void | RequestChecks () override |
| size_t | DEBUG_ForceSpecificChecks (std::vector< uint16 > const &) override |
| void | HandleCheckResult (ByteBuffer &buff) override |
Public Member Functions inherited from Warden | |
| Warden () | |
| virtual | ~Warden () |
| void | Update (uint32 diff) |
| void | HandleData (ByteBuffer &buff) |
| bool | ProcessLuaCheckResponse (std::string const &msg) |
Additional Inherited Members | |
Protected Member Functions inherited from Warden | |
| void | DecryptData (uint8 *buffer, uint32 length) |
| void | EncryptData (uint8 *buffer, uint32 length) |
| void | MakeModuleForClient () |
| void | SendModuleToClient () |
| void | RequestModule () |
| char const * | ApplyPenalty (WardenCheck const *check) |
Static Protected Member Functions inherited from Warden | |
| static bool | IsValidCheckSum (uint32 checksum, const uint8 *data, const uint16 length) |
| static uint32 | BuildChecksum (const uint8 *data, uint32 length) |
Protected Attributes inherited from Warden | |
| WorldSession * | _session |
| std::array< uint8, 16 > | _inputKey = {} |
| std::array< uint8, 16 > | _outputKey = {} |
| std::array< uint8, 16 > | _seed = {} |
| Trinity::Crypto::ARC4 | _inputCrypto |
| Trinity::Crypto::ARC4 | _outputCrypto |
| uint32 | _checkTimer |
| uint32 | _clientResponseTimer |
| bool | _dataSent |
| Optional< ClientWardenModule > | _module |
| bool | _initialized |
Definition at line 28 of file WardenMac.h.
| WardenMac::WardenMac | ( | ) |
Definition at line 34 of file WardenMac.cpp.
| WardenMac::~WardenMac | ( | ) |
Definition at line 36 of file WardenMac.cpp.
|
inlineoverridevirtual |
Implements Warden.
Definition at line 40 of file WardenMac.h.
|
overridevirtual |
Implements Warden.
Definition at line 195 of file WardenMac.cpp.
References Warden::_clientResponseTimer, Warden::_dataSent, Warden::_session, Trinity::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), Trinity::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), Trinity::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSession::KickPlayer(), ByteBuffer::read(), TC_LOG_DEBUG, and Trinity::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
overridevirtual |
Implements Warden.
Definition at line 114 of file WardenMac.cpp.
References Warden::_initialized, Warden::_inputCrypto, Warden::_inputKey, Warden::_outputCrypto, Warden::_outputKey, Warden::_session, Warden::ApplyPenalty(), Trinity::Impl::GenericHash< HashCreator, DigestLength >::GetDigestOf(), WorldSession::GetPlayerInfo(), Trinity::Crypto::ARC4::Init(), keyData::ints, ByteBuffer::read(), TC_LOG_DEBUG, and TC_LOG_WARN.
|
overridevirtual |
Implements Warden.
Definition at line 38 of file WardenMac.cpp.
References Warden::_inputCrypto, Warden::_inputKey, Warden::_module, Warden::_outputCrypto, Warden::_outputKey, Warden::_seed, Warden::_session, ByteArrayToHexStr(), SessionKeyGenerator< Hash >::Generate(), WorldSession::GetAccountId(), Trinity::Crypto::ARC4::Init(), Warden::MakeModuleForClient(), Warden::RequestModule(), and TC_LOG_DEBUG.
|
overridevirtual |
|
overridevirtual |
Implements Warden.
Definition at line 70 of file WardenMac.cpp.
|
overridevirtual |
Implements Warden.
Definition at line 171 of file WardenMac.cpp.
References Warden::_dataSent, Warden::_session, ByteBuffer::append(), ByteBuffer::contents(), Warden::EncryptData(), ByteBuffer::hexlike(), WorldSession::SendPacket(), ByteBuffer::size(), SMSG_WARDEN_DATA, TC_LOG_DEBUG, and WARDEN_SMSG_CHEAT_CHECKS_REQUEST.
|
overridevirtual |
Implements Warden.
Definition at line 82 of file WardenMac.cpp.
References Warden::_seed, Warden::_session, ByteBuffer::append(), WardenHashRequest::Command, Warden::EncryptData(), WardenHashRequest::Seed, WorldSession::SendPacket(), SMSG_WARDEN_DATA, TC_LOG_DEBUG, and WARDEN_SMSG_HASH_REQUEST.