From 0340821cc614fda2a94a96c255d16105dd2f6f9a Mon Sep 17 00:00:00 2001 From: boris Date: Sat, 29 Dec 2018 22:15:34 +1300 Subject: tcp is being autistic -_- --- csgo-loader/csgo-client/Client.cpp | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'csgo-loader/csgo-client/Client.cpp') diff --git a/csgo-loader/csgo-client/Client.cpp b/csgo-loader/csgo-client/Client.cpp index a7d27a7..b9d7b3d 100644 --- a/csgo-loader/csgo-client/Client.cpp +++ b/csgo-loader/csgo-client/Client.cpp @@ -3,19 +3,18 @@ /* TODO: - Finish off security on client: - - Hook OpenProcess, ExitProcess, WSARecv, WSASend and check if function is OOB. + - Hook OpenProcess, ExitProcess, WSARecv, WSASend and check if function is OOB. [DONE] - Use VM check that Nave gave me. - Run a thread to check for blacklisted drivers periodically (also blacklist VBox) - Run a thread to check if there is more than X threads running in the loader. - Add dump protection (closes csgo.exe if a handle is detected, probably explorer shellcode) - Add HWID generation - - Hook DbgBreakPoint and DbgUiRemoteBreakin (instead of bytepatching, some debuggers will check that) - - If the hook is triggered, ban the user. - - Don't forget about the security callback; leave implementation up to Nave. + - Hook DbgBreakPoint and DbgUiRemoteBreakin (instead of bytepatching, some debuggers will check that) [DONE] + - Don't forget about the security callback; leave implementation up to Nave. [DONE] - Apply Themida macros inside important functions: - - Apply mutation on Security hooks and main function. - - Apply fast VM on syscall manager, process functions + - Apply mutation on Security hooks and main function. [DONE] + - Apply fast VM on syscall manager, process functions - Apply robust VM on TCP, login - Apply heavy VM on Encryption, recv/send wrappers. @@ -37,7 +36,7 @@ int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) { - WRAP_IF_DEBUG(Utils::OpenConsole()); + /*WRAP_IF_DEBUG*/(Utils::OpenConsole()); // Autistic workaround for Hooked_OpenProcess crashing // when Device->CreateDevice is invoked... @@ -76,6 +75,19 @@ int __stdcall WinMain(HINSTANCE inst, HINSTANCE prev, char* str, int cmdshow) if(!Client.Start(LOCAL_IP, SERVER_PORT)) ERROR_ASSERT("[000F:0002A000] Server did not accept the connection."); + ByteArray Bytes{ 0, 1, 2, 3, 4, 5 }; + Client.SendBytes(Bytes); + + + ByteArray Bytes2 = Client.ReceiveBytes(); + + printf("%zd\n", Bytes2.size()); + + for(auto &It : Bytes2) + printf("%02x ", It); + + printf("\n"); + // Allow the user to input their log-in data. UserInterface->m_Data.m_ExecutionState = UserExperience::EXECUTION_LOG_IN; -- cgit v1.2.3