summaryrefslogtreecommitdiff
path: root/csgo-loader/csgo-client/Login
diff options
context:
space:
mode:
Diffstat (limited to 'csgo-loader/csgo-client/Login')
-rw-r--r--csgo-loader/csgo-client/Login/RemoteLogin.cpp19
1 files changed, 14 insertions, 5 deletions
diff --git a/csgo-loader/csgo-client/Login/RemoteLogin.cpp b/csgo-loader/csgo-client/Login/RemoteLogin.cpp
index 7942c3b..4a46da3 100644
--- a/csgo-loader/csgo-client/Login/RemoteLogin.cpp
+++ b/csgo-loader/csgo-client/Login/RemoteLogin.cpp
@@ -21,10 +21,11 @@ namespace Login
Security::HardwareIdentifier HardwareId = Protection->GetHardwareId();
WRAP_IF_DEBUG(
- printf("[DEBUG] LoginTransactionStart\n");
+ printf("[DEBUG] RemoteLoginTransaction Start\n");
printf("[DEBUG] Processor count: %d\n", HardwareId.m_CpuCount);
printf("[DEBUG] Processor architecture: %d\n", HardwareId.m_CpuArchitecture);
printf("[DEBUG] Hard-drive Serial: %llx\n", HardwareId.m_HardDiskSerialHash);
+ printf("[DEBUG] Detail: %s\n", HardwareId.m_CustomDetail);
for(int i = 0; i < 4; ++i)
printf("[DEBUG] Safety check #%d: %s\n", i, HardwareId.m_SpecialMode[i] ? "TRUE" : "FALSE");
@@ -32,6 +33,10 @@ namespace Login
m_Header.m_HardwareId = fnv::hash_runtime_data((void *)(&HardwareId), sizeof Security::HardwareIdentifier);
+ WRAP_IF_DEBUG(
+ printf("[DEBUG] Hardware-ID Hash: %llx\n", m_Header.m_HardwareId);
+ );
+
// TODO: Verify integrity of system.
// 0 for integrity passed, random bit for failure
m_Header.m_IntegrityBit1 = HardwareId.m_SpecialMode[Security::DEBUGGING_MODE];
@@ -52,6 +57,10 @@ namespace Login
{
RemoteLoginResponse ServerResponse = *(RemoteLoginResponse *)&RawResponse[0];
+ WRAP_IF_DEBUG(
+ printf("[DEBUG] RemoteLoginTransaction Finish: %02x\n", ServerResponse);
+ );
+
switch(ServerResponse)
{
case RemoteLoginResponse::ACCESS_SPECIAL_USER:
@@ -60,16 +69,16 @@ namespace Login
case RemoteLoginResponse::ACCESS_AUTHORISED:
return true;
case RemoteLoginResponse::OUTDATED_CLIENT:
- INFO_ASSERT(STR("[000A:%llx] Your client is outdated.\nPlease download the latest client at 'moneybot.cc'."), m_Header.m_HardwareId ^ ServerResponse);
+ ERROR_ASSERT(STR("[000A:%llx] Your client is outdated.\nPlease download the latest client at 'moneybot.cc'."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::USER_BANNED:
- INFO_ASSERT(STR("[000D:%llx] Your account is banned.\nPlease contact 'admin@moneybot.cc' for additional information."), m_Header.m_HardwareId ^ ServerResponse);
+ ERROR_ASSERT(STR("[000D:%llx] Your account is banned.\nPlease contact 'admin@moneybot.cc' for additional information."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::INVALID_HARDWARE:
- INFO_ASSERT(STR("[000D:%llx] Your Hardware-ID is incorrect!\nPlease contact a staff member."), m_Header.m_HardwareId ^ ServerResponse);
+ ERROR_ASSERT(STR("[000D:%llx] Your Hardware-ID is incorrect!\nPlease contact a staff member."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::INVALID_CREDENTIALS:
- INFO_ASSERT(STR("[000C:%llx] Your credentials are invalid. Please check your spelling and try again."), m_Header.m_HardwareId ^ ServerResponse);
+ ERROR_ASSERT(STR("[000C:%llx] Your credentials are invalid. Please check your spelling and try again."), m_Header.m_HardwareId ^ ServerResponse);
break;
case RemoteLoginResponse::INTEGRITY_FAILURE:
case RemoteLoginResponse::NO_SUBSCRIPTION: