mirror of
https://github.com/T3nb3w/ComDotNetExploit
synced 2026-06-06 16:54:26 +00:00
20 lines
452 B
C++
20 lines
452 B
C++
// trustinstaller_utils.h
|
|
#pragma once
|
|
#include <iostream>
|
|
#include <codecvt>
|
|
#include <Windows.h>
|
|
#include <TlHelp32.h>
|
|
#include <string>
|
|
#include <stdexcept>
|
|
|
|
class Elevate {
|
|
|
|
public:
|
|
static void RunAsTrustedInstaller();
|
|
|
|
private:
|
|
static void EnablePrivilege(std::wstring privilegeName);
|
|
static DWORD GetProcessIdByName(std::wstring processName);
|
|
static void ImpersonateSystem();
|
|
static int StartTrustedInstallerService();
|
|
}; |