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/Security/RuntimeSecurity.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'csgo-loader/csgo-client/Security/RuntimeSecurity.cpp') diff --git a/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp b/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp index aceab25..739ce5d 100644 --- a/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp +++ b/csgo-loader/csgo-client/Security/RuntimeSecurity.cpp @@ -141,7 +141,7 @@ namespace Security void RuntimeSecurity::PatchDebugFunctions() { - WRAP_IF_RELEASE(VM_DOLPHIN_WHITE_START); + WRAP_IF_RELEASE(VM_EAGLE_WHITE_START); WRAP_IF_RELEASE(STR_ENCRYPT_START); HMODULE Module = GetModuleHandleA("ntdll.dll"); @@ -171,7 +171,7 @@ namespace Security uintptr_t Exports[] = { Export_DbgUiRemoteBreakin, Export_DbgBreakPoint, - Export_NtContinue + //Export_NtContinue // This causes a lot of crashes ATM while debugging, leave this out till release. }; for(auto &It : Exports) @@ -188,7 +188,7 @@ namespace Security } WRAP_IF_RELEASE(STR_ENCRYPT_END); - WRAP_IF_RELEASE(VM_DOLPHIN_WHITE_END); + WRAP_IF_RELEASE(VM_EAGLE_WHITE_END); } void RuntimeSecurity::DispatchSecurityThreads() @@ -218,10 +218,11 @@ namespace Security // Read the PEB from the TIB. // Offset for x86 is 0x30 ; mov ..., dword ptr fs:[0x30] // Offset for x64 is 0x60 ; mov ..., qword ptr gs:[0x60] - PEB *ProcessEnvBlock = (PEB *)__readgsqword(0x60); - if(ProcessEnvBlock->BeingDebugged) - SecurityCallback(); + //PEB *ProcessEnvBlock = (PEB *)__readgsqword(0x60); + // + //if(ProcessEnvBlock->BeingDebugged) + // SecurityCallback(); } void RuntimeSecurity::CheckForDrivers() @@ -247,6 +248,7 @@ namespace Security DispatchSecurityThreads(); // Patch DbgUiRemoteBreakin, DbgBreakPoint, NtContinue + // This also fucks up detours for some reason... only extra protection :-) PatchDebugFunctions(); return true; -- cgit v1.2.3