From 086fad7cb213506e8d7fccdf791a3dcd0b2f54a5 Mon Sep 17 00:00:00 2001 From: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com> Date: Wed, 13 Aug 2025 00:31:47 -0400 Subject: [PATCH] Update schtask_as.py Signed-off-by: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com> --- nxc/modules/schtask_as.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nxc/modules/schtask_as.py b/nxc/modules/schtask_as.py index 845762da..fc02d328 100644 --- a/nxc/modules/schtask_as.py +++ b/nxc/modules/schtask_as.py @@ -102,11 +102,7 @@ class NXCModule: ) self.logger.display(f"Executing {self.command_to_run} as {self.run_task_as}") - #output = exec_method.execute(self.command_to_run, True) - if "cmd" in self.command_to_run.lower() or "powershell" in self.command_to_run.lower(): - output = exec_method.execute(self.command_to_run, True) - else: - output = exec_method.execute(self.command_to_run, False) + output = exec_method.execute(self.command_to_run, True) try: if not isinstance(output, str): @@ -124,8 +120,6 @@ class NXCModule: finally: if self.binary_to_upload: try: - context.log.success("Sleeping for 10 seconds to let binary run") - sleep(10) connection.conn.deleteFile(self.share, f"{binary_file_location}{self.binary_to_upload_name}") context.log.success(f"Binary {binary_file_location}{self.binary_to_upload_name} successfully deleted") except Exception as e: