feat get zwopenprocess
This commit is contained in:
@@ -22,6 +22,9 @@ namespace kernel_api
|
||||
|
||||
RtlInitUnicodeString(&unFuncName, L"RtlFindExportedRoutineByName");
|
||||
imported.rtl_findexported_routinebyname = (ULONG64)MmGetSystemRoutineAddress(&unFuncName);
|
||||
|
||||
RtlInitUnicodeString(&unFuncName, L"ZwOpenThread");
|
||||
imported.nt_open_thread = (ULONG64)MmGetSystemRoutineAddress(&unFuncName);
|
||||
}
|
||||
|
||||
NTSTATUS ntquerysysteminformation(ULONG SystemInformationClass, PVOID SystemInformation, ULONG SystemInformationLength, PULONG ReturnLength)
|
||||
@@ -52,5 +55,10 @@ namespace kernel_api
|
||||
return reinterpret_cast<PVOID(*)(PVOID, PCCH)>(imported.rtl_findexported_routinebyname)
|
||||
(ImageBase, RoutineName);
|
||||
}
|
||||
NTSTATUS ntopenthread(PHANDLE ThreadHandle, ACCESS_MASK DesiredAccess, POBJECT_ATTRIBUTES ObjectAttributes, PCLIENT_ID ClientId)
|
||||
{
|
||||
return reinterpret_cast<NTSTATUS(*)(PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PCLIENT_ID)>(imported.nt_open_thread)
|
||||
(ThreadHandle, DesiredAccess, ObjectAttributes, ClientId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user