From bdb6ac5f940008bcd836e3c5f0a708f4b8f04865 Mon Sep 17 00:00:00 2001 From: boris Date: Sat, 29 Dec 2018 20:59:57 +1300 Subject: protection shit --- csgo-loader/csgo-client/Security/RuntimeSecurity.hpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'csgo-loader/csgo-client/Security/RuntimeSecurity.hpp') diff --git a/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp b/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp index 671f67b..9ad94fd 100644 --- a/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp +++ b/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp @@ -6,6 +6,10 @@ // Intrinsics (_ReturnAddress) #include +// PEB +#include +#include + // Required for the SDK from Themida which offers multiple // virtual machines and string encryption, as well as debug/VM checks. #include @@ -69,9 +73,13 @@ namespace Security void DispatchSecurityThreads(); // The following functions are used in security threads to run checks. - bool CheckForVirtualMachine(); + void CheckForVirtualMachine(); + + void CheckForDebugger(); - bool CheckForDebugger(); + void CheckForDrivers(); + + void CheckForThreads(); public: // Initializes the runtime security system. @@ -80,8 +88,14 @@ namespace Security // Retrieves the current Hardware ID for the system. HardwareIdentifier GetHardwareId(); - // ... + // Syscall wrapper for ZwQueryVirtualMemory. + // This is so we don't get hooked. MEMORY_BASIC_INFORMATION QueryMemory(void *Address); + + // Security callback. + // This should phone back to the server and log any tampering. + // TODO: Nave, actually implement this. + void SecurityCallback(); }; // Readability -- cgit v1.2.3