Created
October 18, 2023 10:16
-
-
Save Cr4sh/0e04de6889ce9fc657f1ea0ccdb42119 to your computer and use it in GitHub Desktop.
Windows Secure Kernel r/e hints and tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To find SKPROCESS Policy offset: | |
__int64 __fastcall SkpspFindPolicy(__int64 a1, __int64 a2, int a3, __int64 a4, __int64 a5) | |
{ | |
v5 = a4; | |
v6 = a3; | |
v7 = a2; | |
v8 = a1; | |
v12 = 0i64; | |
v9 = a1 + 0x1B8; // <-- | |
v10 = RtlLookupImagePolicyValue(a1 + 0x1B8, a2, &v12); | |
... | |
} | |
################################################### | |
To find SKPROCESS page table entry offset: | |
signed __int64 __fastcall SkeSelectProcessAddressSpace(__int64 a1) | |
{ | |
v1 = __getcallerseflags(); | |
_disable(); | |
v2 = v1; | |
v3 = *(_QWORD *)(a1 + 0x40); // <-- | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment