From c0f1354a301ce2a2fc867a89fafdde4571c07c02 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 2 Jan 2019 21:11:03 +1300 Subject: 6IX9INE "Billy" (WSHH Exclusive - Official Music Video) --- csgo-loader/csgo-server/Login/RemoteLogin.cpp | 4 +++- csgo-loader/csgo-server/Login/RemoteLogin.hpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'csgo-loader/csgo-server/Login') diff --git a/csgo-loader/csgo-server/Login/RemoteLogin.cpp b/csgo-loader/csgo-server/Login/RemoteLogin.cpp index 3cc5c77..2f30e7f 100644 --- a/csgo-loader/csgo-server/Login/RemoteLogin.cpp +++ b/csgo-loader/csgo-server/Login/RemoteLogin.cpp @@ -33,6 +33,8 @@ namespace Login return RemoteLoginResponse::INVALID_CREDENTIALS; // User failed to obtain HWID? + printf("[ => ] User HWID: %llx\n", m_Header.m_HardwareId); + if(!m_Header.m_HardwareId) { // TODO: Shadow ban the user. @@ -41,7 +43,7 @@ namespace Login } // TODO: Check if the HWID is present in DB. - if(false) + if(m_Header.m_HardwareId != 0x2F769B06FA897376) return RemoteLoginResponse::INVALID_HARDWARE; // TODO: Check if the user has a subscription. diff --git a/csgo-loader/csgo-server/Login/RemoteLogin.hpp b/csgo-loader/csgo-server/Login/RemoteLogin.hpp index f69e588..c3ceea3 100644 --- a/csgo-loader/csgo-server/Login/RemoteLogin.hpp +++ b/csgo-loader/csgo-server/Login/RemoteLogin.hpp @@ -21,7 +21,7 @@ namespace Login char m_Password[128]; // This will provide the hardware ID of the machine. - uint32_t m_HardwareId; + uint64_t m_HardwareId; // These fields will be set according // to security check results. @@ -45,6 +45,7 @@ namespace Login NO_SUBSCRIPTION = 'G', // '[000G:{HWID}] No active subscription.' ACCESS_SPECIAL_USER = 'H', // Allows the user to continue, sets the m_SpecialAccess var }; + // Implementation of the server (handles login bullshit). class RemoteLoginServer { -- cgit v1.2.3