mirror of
https://github.com/klezVirus/DriverJack
synced 2026-06-06 16:04:32 +00:00
18 lines
479 B
C++
18 lines
479 B
C++
#pragma once
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include <string>
|
|
#include <process.h>
|
|
#include <tlhelp32.h>
|
|
|
|
//https://github.com/Mr-Un1k0d3r/Elevate-System-Trusted-BOF/blob/main/elevate_x64.c
|
|
|
|
DWORD GetProcByName(LPWSTR name);
|
|
DWORD GetTrustedInstallerPID();
|
|
BOOL ImpersonateByPID(DWORD PID, HANDLE* hStorage);
|
|
BOOL ElevateSystem(HANDLE*);
|
|
BOOL ElevateSystemOnly();
|
|
BOOL ElevateTrustedInstaller(HANDLE*);
|
|
BOOL TogglePrivilege(HANDLE token, LPWSTR privilege, BOOL onOff);
|
|
|