starting as trusted

This commit is contained in:
qtkite 2021-07-22 03:32:18 +10:00
parent a690865624
commit f432bc513d
3 changed files with 8 additions and 4 deletions

View File

@ -102,6 +102,10 @@ namespace dcontrol
helper->execute<uint8_t>("SevereThreatDefaultAction", wmic::variant_type::t_uint8, 6);
helper->execute<uint8_t>("ScanScheduleDay", wmic::variant_type::t_uint8, 8);
// Delete smart screen
// Disable windefend
// Set windefend to DEMAND
return true;
}

View File

@ -19,8 +19,8 @@ int main(int argc, char **argv)
//
if (!trusted::is_system_group() && argc == 1)
{
auto path = util::get_current_path();
printf("Restarting with privileges");
trusted::create_process(util::get_current_path());
return EXIT_SUCCESS;
}
@ -40,5 +40,6 @@ int main(int argc, char **argv)
}
system("pause");
return 0;
return EXIT_SUCCESS;
}

View File

@ -152,7 +152,6 @@ namespace trusted
return -1;
}
// Being a process as TrustedInstaller
//
bool create_process(std::string commandLine)