Update security.js

This commit is contained in:
Namhyeon Go 2022-11-06 17:56:41 +09:00 committed by GitHub
parent df3c2b22b6
commit f6ec022378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,9 +63,9 @@ function getAntiVirusProducts() {
function OpenThreatSettings() {
var FN_MSASCui = SYS.getEnvString("%ProgramFiles%") + "\\Windows Defender\\MSASCui.exe";
if (!FILE.fileExists(FN_MSASCui)) {
SHELL.runAs("windowsdefender://Threatsettings");
SHELL.runAs("windowsdefender://Threatsettings"); // Windows 10
} else {
SHELL.runAs(FN_MSASCui); // old Windows Defender
SHELL.runAs(FN_MSASCui); // old Windows
}
}
@ -77,7 +77,7 @@ exports.setDisableTaskMgr = setDisableTaskMgr;
exports.getAntiVirusProducts = getAntiVirusProducts;
exports.OpenThreatSettings = OpenThreatSettings;
exports.VERSIONINFO = "Security Policy Module (security.js) version 0.2";
exports.VERSIONINFO = "Security Policy Module (security.js) version 0.2.1";
exports.AUTHOR = "catswords@protonmail.com";
exports.global = global;
exports.require = global.require;