|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WardenWin.h>
Public Member Functions | |
| ClientWardenModule * | GetModuleForClient () |
| void | HandleData (ByteBuffer &buff) |
| void | HandleHashResult (ByteBuffer &buff) |
| void | Init (WorldSession *session, SessionKey const &K) |
| void | InitializeModule () |
| void | RequestData () |
| void | RequestHash () |
| WardenWin () | |
| ~WardenWin () | |
| Public Member Functions inherited from Warden | |
| void | DecryptData (uint8 *buffer, uint32 length) |
| void | EncryptData (uint8 *buffer, uint32 length) |
| std::string | Penalty (WardenCheck *check=NULL) |
| void | RequestModule () |
| void | SendModuleToClient () |
| void | Update () |
| Warden () | |
| virtual | ~Warden () |
Private Attributes | |
| std::list< uint16 > | _currentChecks |
| std::list< uint16 > | _memChecksTodo |
| std::list< uint16 > | _otherChecksTodo |
| uint32 | _serverTicks |
Additional Inherited Members | |
| Static Public Member Functions inherited from Warden | |
| static uint32 | BuildChecksum (const uint8 *data, uint32 length) |
| static bool | IsValidCheckSum (uint32 checksum, const uint8 *data, const uint16 length) |
Definition at line 60 of file WardenWin.h.
| WardenWin::WardenWin | ( | ) |
Definition at line 26 of file WardenWin.cpp.
References Warden::Warden().
| WardenWin::~WardenWin | ( | ) |
Definition at line 28 of file WardenWin.cpp.
|
virtual |
Implements Warden.
Definition at line 55 of file WardenWin.cpp.
References ClientWardenModule::CompressedData, ClientWardenModule::CompressedSize, MD5Hash::Finalize(), ClientWardenModule::Key, Module, and MD5Hash::UpdateData().
Referenced by Init().
|
virtual |
Implements Warden.
Definition at line 311 of file WardenWin.cpp.
References Warden::_checkTimer, Warden::_clientResponseTimer, _currentChecks, Warden::_dataSent, _serverTicks, Warden::_session, CONFIG_WARDEN_CLIENT_CHECK_HOLDOFF, ByteBuffer::contents(), DRIVER_CHECK, getMSTime(), IN_MILLISECONDS, Warden::IsValidCheckSum(), WardenCheck::Length, LUA_STR_CHECK, MEM_CHECK, MODULE_CHECK, MPQ_CHECK, PAGE_CHECK_A, PAGE_CHECK_B, Warden::Penalty(), WardenCheckResult::Result, ByteBuffer::rpos(), SF_LOG_DEBUG, SF_LOG_WARN, SkyFire::Crypto::Constants::SHA1_DIGEST_LENGTH_BYTES, sWardenCheckMgr, sWorld, BigNumber::ToByteArray(), BigNumber::ToByteVector(), WardenCheck::Type, and ByteBuffer::wpos().
|
virtual |
Implements Warden.
Definition at line 135 of file WardenWin.cpp.
References Warden::_initialized, Warden::_inputCrypto, Warden::_inputKey, Warden::_outputCrypto, Warden::_outputKey, Warden::_previousTimestamp, Warden::_session, ByteBuffer::contents(), getMSTime(), Module, Warden::Penalty(), ByteBuffer::rpos(), SF_LOG_DEBUG, SF_LOG_WARN, and ByteBuffer::wpos().
|
virtual |
Implements Warden.
Definition at line 30 of file WardenWin.cpp.
References Warden::_inputCrypto, Warden::_inputKey, Warden::_module, Warden::_outputCrypto, Warden::_outputKey, Warden::_seed, Warden::_session, SkyFire::Impl::ByteArrayToHexStr(), SessionKeyGenerator< Hash >::Generate(), WorldSession::GetAccountId(), GetModuleForClient(), Module, Warden::RequestModule(), and SF_LOG_DEBUG.
|
virtual |
Implements Warden.
Definition at line 74 of file WardenWin.cpp.
References Warden::_session, ByteBuffer::append(), Warden::BuildChecksum(), WardenInitModuleRequest::CheckSumm1, WardenInitModuleRequest::CheckSumm2, WardenInitModuleRequest::CheckSumm3, WardenInitModuleRequest::Command1, WardenInitModuleRequest::Command2, WardenInitModuleRequest::Command3, Warden::EncryptData(), WardenInitModuleRequest::Function1, WardenInitModuleRequest::Function2, WardenInitModuleRequest::Function2_set, WardenInitModuleRequest::Function3, WardenInitModuleRequest::Function3_set, SF_LOG_DEBUG, WardenInitModuleRequest::Size1, WardenInitModuleRequest::Size2, WardenInitModuleRequest::Size3, SMSG_WARDEN_DATA, WardenInitModuleRequest::String_library1, WardenInitModuleRequest::String_library2, WardenInitModuleRequest::String_library3, WardenInitModuleRequest::Type, WardenInitModuleRequest::Unk1, WardenInitModuleRequest::Unk2, WardenInitModuleRequest::Unk3, WardenInitModuleRequest::Unk4, WardenInitModuleRequest::Unk5, WardenInitModuleRequest::Unk6, and WARDEN_SMSG_MODULE_INITIALIZE.
|
virtual |
Implements Warden.
Definition at line 160 of file WardenWin.cpp.
References _currentChecks, Warden::_dataSent, Warden::_inputKey, _memChecksTodo, _otherChecksTodo, _serverTicks, Warden::_session, WardenCheck::Address, ByteBuffer::append(), CONFIG_WARDEN_NUM_MEM_CHECKS, CONFIG_WARDEN_NUM_OTHER_CHECKS, ByteBuffer::contents(), WardenCheck::Data, DRIVER_CHECK, Warden::EncryptData(), SkyFire::Impl::GenericHMAC< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GetDigestOf(), getMSTime(), SkyFire::Crypto::GetRandomBytes(), ByteBuffer::hexlike(), WardenCheck::Length, LUA_STR_CHECK, MEM_CHECK, MODULE_CHECK, MPQ_CHECK, PAGE_CHECK_A, PAGE_CHECK_B, SF_LOG_DEBUG, ByteBuffer::size(), SMSG_WARDEN_DATA, WardenCheck::Str, sWardenCheckMgr, sWorld, TIMING_CHECK, BigNumber::ToByteVector(), WardenCheck::Type, and WARDEN_SMSG_CHEAT_CHECKS_REQUEST.
|
virtual |
Implements Warden.
Definition at line 118 of file WardenWin.cpp.
References Warden::_seed, Warden::_session, ByteBuffer::append(), WardenHashRequest::Command, Warden::EncryptData(), WardenHashRequest::Seed, SF_LOG_DEBUG, SMSG_WARDEN_DATA, and WARDEN_SMSG_HASH_REQUEST.
|
private |
Definition at line 78 of file WardenWin.h.
Referenced by HandleData(), and RequestData().
|
private |
Definition at line 77 of file WardenWin.h.
Referenced by RequestData().
|
private |
Definition at line 76 of file WardenWin.h.
Referenced by RequestData().
|
private |
Definition at line 75 of file WardenWin.h.
Referenced by HandleData(), and RequestData().