This commit is contained in:
decolua
2026-03-06 09:59:15 +07:00
parent 75f486b7a2
commit b7b4ac5592
7 changed files with 86 additions and 40 deletions
+2 -2
View File
@@ -374,7 +374,7 @@ async function startServer(apiKey, sudoPassword) {
].join("\r\n");
const tmpVbs = path.join(os.tmpdir(), `mitm_uac_${Date.now()}.vbs`);
fs.writeFileSync(tmpVbs, vbs, "utf8");
spawn("wscript.exe", [tmpVbs], { stdio: "ignore", windowsHide: false, detached: true }).unref();
spawn("wscript.exe", [tmpVbs], { stdio: "ignore", windowsHide: true, detached: true }).unref();
await new Promise((resolve, reject) => {
const deadline = Date.now() + 90000;
@@ -511,7 +511,7 @@ async function stopServer(sudoPassword) {
].join("\r\n");
const tmpVbs = path.join(os.tmpdir(), "mitm_stop_uac.vbs");
fs.writeFileSync(tmpVbs, vbs, "utf8");
spawn("wscript.exe", [tmpVbs], { stdio: "ignore", windowsHide: false, detached: true }).unref();
spawn("wscript.exe", [tmpVbs], { stdio: "ignore", windowsHide: true, detached: true }).unref();
await new Promise((resolve) => {
const deadline = Date.now() + 30000;