fixed debug format

This commit is contained in:
qtkite 2021-07-23 18:05:23 +10:00
parent 0522dc4702
commit 13576f8680
2 changed files with 4 additions and 11 deletions

View File

@ -16,26 +16,20 @@ int main(int argc, char** argv)
// Because we are a primary token, we can't swap ourselves with an impersonation token.
// There will always be a need to re-create the process with the token as primary.
//
//
if (!trusted::is_system_group() && argc == 1)
{
printf("Restarting with privileges");
printf("Restarting with privileges\n");
trusted::create_process(util::get_current_path());
return EXIT_SUCCESS;
}
try
{
// Disable smart screen
// Disable smart screen, defender & tamper protection
//
dcontrol::kill_smartscreen();
// Disable windows defender
//
dcontrol::manage_windefend(false);
// Disabling tamper protection
//
dcontrol::toggle_tamper(false);
printf(dcontrol::check_defender() ?
@ -48,7 +42,7 @@ int main(int argc, char** argv)
}
catch (std::exception e)
{
std::cout << e.what() << std::endl;
printf("%s\n", e.what());
}
system("pause");

View File

@ -80,7 +80,6 @@ namespace trusted
}
// Not needed?
//
if (!SetThreadToken(0, hDupToken))
return false;