mirror of
https://github.com/qtkite/defender-control.git
synced 2024-11-04 12:00:15 +00:00
fixed debug format
This commit is contained in:
parent
0522dc4702
commit
13576f8680
@ -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");
|
||||
|
@ -80,7 +80,6 @@ namespace trusted
|
||||
}
|
||||
|
||||
// Not needed?
|
||||
//
|
||||
if (!SetThreadToken(0, hDupToken))
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user