This commit is contained in:
DavidXanatos 2021-07-27 13:03:41 +02:00
parent bb2f8958e8
commit 5b0293bf17
1 changed files with 5 additions and 1 deletions

View File

@ -285,6 +285,7 @@ void Secure_InitSecurityDescriptors(void)
_FX BOOLEAN Secure_Init(void)
{
void *NtFilterTokenEx;
void *RtlQueryElevationFlags;
void *RtlCheckTokenMembershipEx;
@ -302,7 +303,10 @@ _FX BOOLEAN Secure_Init(void)
if (Dll_OsBuild >= 21286) { // Windows 11
SBIEDLL_HOOK(Secure_, NtDuplicateToken);
SBIEDLL_HOOK(Secure_, NtFilterToken);
SBIEDLL_HOOK(Secure_, NtFilterTokenEx);
NtFilterTokenEx = GetProcAddress(Dll_Ntdll, "NtFilterTokenEx");
if (NtFilterTokenEx) {
SBIEDLL_HOOK(Secure_, NtFilterTokenEx);
}
}
if (Dll_Windows < 10) {
SBIEDLL_HOOK(Secure_, NtQueryInformationToken);