Skip to content

Commit cf8c1b1

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 27caff5 commit cf8c1b1

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
@@ -214,10 +214,7 @@ def execute_handler(self, command, fileless=False):
214214

215215
dce.set_credentials(*self.__rpctransport.get_credentials())
216216
dce.connect()
217-
if self.task is None:
218-
tmpName = gen_random_string(8)
219-
else:
220-
tmpName = self.task
217+
tmpName = gen_random_string(8) if self.task is None else self.task
221218
xml = self.gen_xml(command, fileless)
222219

223220
self.logger.info(f"Task XML: {xml}")

0 commit comments

Comments
 (0)