Skip to content

Commit 801420d

Browse files
committed
As the scheduled task now triggers on registration we remove manuel execution because this would try to run the task twice
1 parent 14ccdfc commit 801420d

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,6 @@ def execute_handler(self, command, fileless=False):
278278
tsch.hSchRpcDelete(dce, f"\\{self.task}")
279279
return
280280

281-
self.logger.info(f"Running task \\{self.task}")
282-
tsch.hSchRpcRun(dce, f"\\{self.task}")
283-
284281
done = False
285282
while not done:
286283
self.logger.debug(f"Calling SchRpcGetLastRunInfo for \\{self.task}")

nxc/protocols/smb/atexec.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ def execute_handler(self, command, fileless=False):
151151
self.logger.fail(str(e))
152152
return
153153

154-
self.logger.info(f"Running task \\{tmpName}")
155-
tsch.hSchRpcRun(dce, f"\\{tmpName}")
156-
157154
done = False
158155
while not done:
159156
self.logger.debug(f"Calling SchRpcGetLastRunInfo for \\{tmpName}")

0 commit comments

Comments
 (0)