diff options
Diffstat (limited to 'csgo-loader/csgo-client/Security/RuntimeSecurity.hpp')
| -rw-r--r-- | csgo-loader/csgo-client/Security/RuntimeSecurity.hpp | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp b/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp index 08e6490..06df3bf 100644 --- a/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp +++ b/csgo-loader/csgo-client/Security/RuntimeSecurity.hpp @@ -10,6 +10,9 @@ #include <windows.h>
#include <winternl.h>
+// IOCTL
+#include <winioctl.h>
+
// EnumDeviceDrivers
#include <psapi.h>
@@ -47,6 +50,19 @@ namespace Security
{
+ // Sigh..
+ struct CodeIntegrityInformation {
+ uint32_t m_Size;
+ uint32_t m_Options;
+ };
+
+ enum SpecialMode {
+ SAFE_MODE,
+ TEST_SIGN_MODE,
+ TEST_BUILD_MODE,
+ DEBUGGING_MODE
+ };
+
// Hardware ID structure (this is hashed and sent to server, but it's easier to use it
// this way internally)
struct HardwareIdentifier
@@ -54,15 +70,12 @@ namespace Security // Generic CPU information.
uint16_t m_CpuArchitecture;
uint32_t m_CpuCount;
-
- // Contains list of CPU features.
- char m_CpuFeatures[64];
-
+
// Hash of the hard disk serial identifier.
- uint32_t m_HardDiskSerialHash;
+ uint64_t m_HardDiskSerialHash;
// Safe-mode/Test-signing mode status
- uint8_t m_SpecialMode[2];
+ uint8_t m_SpecialMode[4];
};
// This class implements the runtime security system.
|
