Kill Browser on asphyxia start

This commit is contained in:
Vaclav Siml 2023-02-23 22:00:52 +01:00
parent b635a707c5
commit 60df294328
2 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,5 @@
var AsphyxiaPath = "C:\\test\\cmd.exe" var AsphyxiaPath = "C:\\test\\cmd.exe"
var SDVX3Path = "C:\\test\\cmd2.exe" var SDVX3Path = "C:\\test\\cmd2.exe"
var SDVX4Path = "" var SDVX4Path = ""
var SDVX5Path = "" var SDVX5Path = ""
var browser = "brave.exe"

View file

@ -88,21 +88,32 @@
</script> </script>
<script> <script>
var vers = 0; var vers = 0;
const { execFile } = require('child_process'); const { execFile, exec } = require('child_process');
function sdvx(){ function sdvx(){
console.log("promenna",vers);
switch (vers) { switch (vers) {
case 3: case 3:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
execFile(SDVX3Path); execFile(SDVX3Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)
//console.log(vers); //console.log(vers);
break; break;
case 4: case 4:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
execFile(SDVX4Path); execFile(SDVX4Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)
break; break;
case 5: case 5:
execFile(AsphyxiaPath); execFile(AsphyxiaPath);
execFile(SDVX5Path); execFile(SDVX5Path);
setTimeout(function(){
exec("taskkill /im " + browser)
},1200)
break; break;
default: default:
break; break;