From c48c13417c198194b0d2f508a33431b27f5605b8 Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 25 Dec 2018 18:06:51 +1300 Subject: e --- csgo-loader/csgo-client/Client.cpp | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'csgo-loader/csgo-client') diff --git a/csgo-loader/csgo-client/Client.cpp b/csgo-loader/csgo-client/Client.cpp index 69920bb..3fc15fd 100644 --- a/csgo-loader/csgo-client/Client.cpp +++ b/csgo-loader/csgo-client/Client.cpp @@ -43,24 +43,44 @@ void hhahahaha() } #endif -int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) +void OpenConsole() { -#ifdef DEBUG AllocConsole(); FILE *file; freopen_s(&file, "CONOUT$", "w", stdout); -#endif +} + +int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) +{ + OpenConsole(); + Networking::TCPClient Client; // Initialize the syscall manager. if(!Syscalls->Start()) ERROR_ASSERT("[000F:00001A00] Failed to initialize. Please contact an administrator."); - + + // Wait for connection. UserInterface->m_Data.m_ExecutionState = UserExperience::EXECUTION_WAITING; + // Create a thread to handle UI. + std::thread WindowThread([] + { + // Create a window, initialise DirectX context. + if(!UserInterface->Start()) + ERROR_ASSERT("[000F:00001B00] Failed to initialize. Please contact an administrator."); + + // Create a loop to draw our UI. + UserInterface->RunUiFrame(); + }); WindowThread.detach(); + + // Attempt to connect to the remote server. if(!Client.Start(LOCAL_IP, SERVER_PORT)) ERROR_ASSERT("[000F:0002A000] Server did not accept the connection."); + // Allow the user to input their log-in data. + UserInterface->m_Data.m_ExecutionState = UserExperience::EXECUTION_LOG_IN; + // TODO: Add game selection. while(1) { if(GetAsyncKeyState(VK_END) & 0x8000) break; Sleep(1); } -- cgit v1.2.3 From 73cbed632030f7f44d259dea1e2a1b00a17f95a5 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 26 Dec 2018 00:11:18 +1300 Subject: obje]se incomepeternt porogrammer wtieres cod SPWOOOOOoo --- csgo-loader/csgo-client/Client.cpp | 12 ++++++++++-- csgo-loader/csgo-client/Login/RemoteLogin.cpp | 4 +--- csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp | 2 +- csgo-loader/csgo-client/Security/SyscallManager.cpp | 2 +- csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h | 8 ++++---- csgo-loader/csgo-client/UserExperience/UserInterface.hpp | 2 +- 6 files changed, 18 insertions(+), 12 deletions(-) (limited to 'csgo-loader/csgo-client') diff --git a/csgo-loader/csgo-client/Client.cpp b/csgo-loader/csgo-client/Client.cpp index 3fc15fd..dc08da2 100644 --- a/csgo-loader/csgo-client/Client.cpp +++ b/csgo-loader/csgo-client/Client.cpp @@ -9,6 +9,8 @@ #define SERVER_IP 0xE53CA523 // Hexadecimal representation of the server IP, obtained by inet_addr() #define SERVER_PORT 0xF2C // Hexadecimal representation of the server port. +// hey nave just wanna let u know u r epic +// yea #if 0 void hhahahaha() { @@ -43,11 +45,18 @@ void hhahahaha() } #endif -void OpenConsole() +// is this loss/ +__forceinline void OpenConsole() { +#ifdef DEBUG + // ;ddDDDDdDDDd AllocConsole(); + + // yo dude + // get this handles FILE *file; freopen_s(&file, "CONOUT$", "w", stdout); +#endif // DEBUG } int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) @@ -77,7 +86,6 @@ int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) // Attempt to connect to the remote server. if(!Client.Start(LOCAL_IP, SERVER_PORT)) ERROR_ASSERT("[000F:0002A000] Server did not accept the connection."); - // Allow the user to input their log-in data. UserInterface->m_Data.m_ExecutionState = UserExperience::EXECUTION_LOG_IN; diff --git a/csgo-loader/csgo-client/Login/RemoteLogin.cpp b/csgo-loader/csgo-client/Login/RemoteLogin.cpp index 2f82744..b6912d8 100644 --- a/csgo-loader/csgo-client/Login/RemoteLogin.cpp +++ b/csgo-loader/csgo-client/Login/RemoteLogin.cpp @@ -57,9 +57,6 @@ namespace Login case RemoteLoginResponse::OUTDATED_CLIENT: INFO_ASSERT("[000A:%08x] Your client is outdated.\nPlease download the latest client at 'moneybot.cc'.", m_Header.m_HardwareId); break; - case RemoteLoginResponse::INTEGRITY_FAILURE: - UserInterface->m_Data.m_Error = UserExperience::ERROR_SHADOW_BAN; - break; case RemoteLoginResponse::USER_BANNED: INFO_ASSERT("[000D:%08x] Your account is banned.\nPlease contact 'admin@moneybot.cc' for additional information.", m_Header.m_HardwareId); break; @@ -69,6 +66,7 @@ namespace Login case RemoteLoginResponse::INVALID_CREDENTIALS: INFO_ASSERT("[000C:%08x] Your credentials are invalid. Please check your spelling and try again.", m_Header.m_HardwareId); break; + case RemoteLoginResponse::INTEGRITY_FAILURE: case RemoteLoginResponse::NO_SUBSCRIPTION: INFO_ASSERT("[000G:%08x] No active subscription found.", m_Header.m_HardwareId); break; diff --git a/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp b/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp index 969f907..8d2509f 100644 --- a/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp +++ b/csgo-loader/csgo-client/RemoteCode/RemoteProcess.cpp @@ -85,7 +85,7 @@ namespace RemoteCode while(Module32Next(Toolhelp, &ModuleEntry)) { - printf("%s\n", ModuleEntry.szModule); + //printf("%s\n", ModuleEntry.szModule); if(strstr(ModuleEntry.szModule, ModuleName)) { CloseHandle(Toolhelp); diff --git a/csgo-loader/csgo-client/Security/SyscallManager.cpp b/csgo-loader/csgo-client/Security/SyscallManager.cpp index 9de2459..bab2d5f 100644 --- a/csgo-loader/csgo-client/Security/SyscallManager.cpp +++ b/csgo-loader/csgo-client/Security/SyscallManager.cpp @@ -8,7 +8,7 @@ namespace Wrapper { void SyscallStub::SetIndex(uint32_t Index) { - unsigned long OldProtection{}; + DWORD OldProtection{}; // Make the code executable and set the index. if(VirtualProtect(m_Shellcode, sizeof m_Shellcode, PAGE_EXECUTE_READWRITE, &OldProtection)) diff --git a/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h b/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h index 661ef1f..b061cd5 100644 --- a/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h +++ b/csgo-loader/csgo-client/UserExperience/MoneybotShared/ui.h @@ -84,20 +84,20 @@ namespace ui { auto choose_form = menu->add_item(std::make_shared(120, 20, 190, 115, "select a cheat")); { // Change these if you want to. - static std::vector> m_beta_items{ + static std::vector> m_beta_items{ { "cs:go (release)", 0 }, { "cs:go (beta)", 1 }, { "cs:go (debug)", 2 }, }; - static std::vector> m_normal_items{ + static std::vector> m_normal_items{ { "cs:go", 0 }, }; - choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_beta_items))->set_cond([] { + choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_beta_items))->set_cond([] { return UserInterface->m_Data.m_SpecialAccess; }); - choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_normal_items))->set_cond([] { + choose_form->add_item(std::make_shared>(15, 0, 140, "cheat selection:", &UserInterface->m_Data.m_SelectedGame, &m_normal_items))->set_cond([] { return !UserInterface->m_Data.m_SpecialAccess; }); diff --git a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp index d855c85..e905b3b 100644 --- a/csgo-loader/csgo-client/UserExperience/UserInterface.hpp +++ b/csgo-loader/csgo-client/UserExperience/UserInterface.hpp @@ -45,7 +45,7 @@ namespace UserExperience bool m_SpecialAccess = false; // Holds the selected game. - SelectedGame m_SelectedGame = GAME_CSGO; + uint16_t m_SelectedGame = GAME_CSGO; // Holds the current error message. ErrorReason m_Error = ERROR_GENERIC_ERROR; -- cgit v1.2.3