From 0b2ac96deef7dcda6b80a24e52358a767afdccb9 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 25 Mar 2022 21:00:57 +0530 Subject: [PATCH] Agent: Modify use signed scripts PBA to return PostBreachData --- .../infection_monkey/post_breach/actions/use_signed_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/post_breach/actions/use_signed_scripts.py b/monkey/infection_monkey/post_breach/actions/use_signed_scripts.py index 4f0c6bd90..085b73bb9 100644 --- a/monkey/infection_monkey/post_breach/actions/use_signed_scripts.py +++ b/monkey/infection_monkey/post_breach/actions/use_signed_scripts.py @@ -24,7 +24,7 @@ class SignedScriptProxyExecution(PBA): original_comspec = subprocess.check_output( # noqa: DUO116 "if defined COMSPEC echo %COMSPEC%", shell=True ).decode() - super().run() + return super().run() except Exception as e: logger.warning( f"An exception occurred on running PBA "