Skip to content

Commit 447bded

Browse files
Kahvi-0Marshall-Hallenbeck
authored andcommitted
Update schtask_as.py
Signed-off-by: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com>
1 parent e768954 commit 447bded

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,7 @@ def gen_xml(self, command, fileless=False):
200200
<Command>cmd.exe</Command>
201201
"""
202202
if self.__retOutput:
203-
if self.location is None:
204-
fileLocation = "\\Windows\\Temp\\"
205-
else:
206-
fileLocation = self.location
203+
fileLocation = "\\Windows\\Temp\\" if self.location is None else self.location
207204
if self.file is None:
208205
self.__output_filename = f"{fileLocation}{gen_random_string(6)}"
209206
else:

0 commit comments

Comments
 (0)