Skip to content

Commit

Permalink
Update Setup.hpp
Browse files Browse the repository at this point in the history
Init offset NtLockVirtualMemory
  • Loading branch information
Lafko authored Nov 25, 2024
1 parent ffa6d73 commit f36b4c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SKLib/include/Setup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ namespace setup {
ULONG64 PsQueryFullProcessImageName = parser.GetSymbolRVA(L"PsQueryFullProcessImageName");
ULONG64 KiNmiInterruptStart = parser.GetSymbolRVA(L"KiNmiInterruptStart");
ULONG64 WmipSMBiosVersionInfo = parser.GetSymbolRVA(L"WmipSMBiosVersionInfo");
ULONG64 NtLockVirtualMemory = parser.GetSymbolRVA(L"NtLockVirtualMemory"e);
if (WmipSMBiosTableLength == INVALID_OFFSET
|| PsEnumProcesses == INVALID_OFFSET
|| PspInsertProcess == INVALID_OFFSET
Expand All @@ -109,6 +110,7 @@ namespace setup {
|| PsQueryFullProcessImageName == INVALID_OFFSET
|| KiNmiInterruptStart == INVALID_OFFSET
|| WmipSMBiosVersionInfo == INVALID_OFFSET
|| NtLockVirtualMemory == INVALID_OFFSET
) {
printf("[-] ntoskrnl offsets invalid!\n");
#ifdef BUILD_SPOOFER
Expand Down Expand Up @@ -139,6 +141,7 @@ namespace setup {
offsets.PsQueryFullProcessImageName = PsQueryFullProcessImageName;
offsets.KiNmiInterruptStart = KiNmiInterruptStart;
offsets.WmipSMBiosVersionInfo = WmipSMBiosVersionInfo;
offsets.NtLockVirtualMemory = NtLockVirtualMemory;
}
#pragma endregion

Expand Down Expand Up @@ -223,4 +226,4 @@ namespace setup {
}
}

#endif
#endif

0 comments on commit f36b4c4

Please sign in to comment.