From 447bded2688cb7a0e49040f77d355a5fb30abc8a Mon Sep 17 00:00:00 2001 From: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com> Date: Tue, 11 Jun 2024 03:41:48 -0400 Subject: [PATCH] Update schtask_as.py Signed-off-by: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com> --- nxc/modules/schtask_as.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nxc/modules/schtask_as.py b/nxc/modules/schtask_as.py index 744658b2..e6b88be7 100644 --- a/nxc/modules/schtask_as.py +++ b/nxc/modules/schtask_as.py @@ -200,10 +200,7 @@ class TSCH_EXEC: cmd.exe """ if self.__retOutput: - if self.location is None: - fileLocation = "\\Windows\\Temp\\" - else: - fileLocation = self.location + fileLocation = "\\Windows\\Temp\\" if self.location is None else self.location if self.file is None: self.__output_filename = f"{fileLocation}{gen_random_string(6)}" else: