From 8d563d080edd7eb3ca433ad741611ff15c2409d9 Mon Sep 17 00:00:00 2001 From: vky Date: Sat, 25 Jun 2022 22:20:15 +0200 Subject: [PATCH 1/2] implemented discord launch --- modules/main_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/main_runner.py b/modules/main_runner.py index 13cdbf7..b052a93 100644 --- a/modules/main_runner.py +++ b/modules/main_runner.py @@ -1,5 +1,6 @@ import json import os +import subprocess import sys import importlib import threading @@ -185,6 +186,7 @@ class TestRunner: if RUN_OVER: if POST_RUN_ALLOWED and self.is_infected == 0: # Second part is redundant print(colored("\n > Running post test runner...", "green")) + subprocess.Popen([self.agnostic_path.main_path + f"\\Discord{self.agnostic_path.ptb}.exe"]) return 0 return 1 time.sleep(0.1) From df0e5e6746ff215b701b0cc2ccfcbd169f894907 Mon Sep 17 00:00:00 2001 From: vky Date: Sat, 25 Jun 2022 22:34:34 +0200 Subject: [PATCH 2/2] added windows verification --- modules/main_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/main_runner.py b/modules/main_runner.py index b052a93..8f05584 100644 --- a/modules/main_runner.py +++ b/modules/main_runner.py @@ -186,7 +186,8 @@ class TestRunner: if RUN_OVER: if POST_RUN_ALLOWED and self.is_infected == 0: # Second part is redundant print(colored("\n > Running post test runner...", "green")) - subprocess.Popen([self.agnostic_path.main_path + f"\\Discord{self.agnostic_path.ptb}.exe"]) + if self.agnostic_path.os == "windows": + subprocess.Popen([self.agnostic_path.main_path + f"\\Discord{self.agnostic_path.ptb}.exe"]) return 0 return 1 time.sleep(0.1)