starting as trusted

pull/1/head
qtkite 3 years ago
parent a690865624
commit f432bc513d

@ -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;
}

@ -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;
}

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

Loading…
Cancel
Save