Skip to content

Commit dc61428

Browse files
authored
Update schtask_as.py
Signed-off-by: Kahvi-0xFF <46513413+Kahvi-0@users.noreply.github.com>
1 parent 9c17cf9 commit dc61428

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/schtask_as.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def on_admin_login(self, context, connection):
9191
except Exception as e:
9292
if "SCHED_S_TASK_HAS_NOT_RUN" in str(e):
9393
self.logger.fail("Task was not run, seems like the specified user has no active session on the target")
94-
#exec_method.deleteartifact()
94+
exec_method.deleteartifact()
9595

9696
class TSCH_EXEC:
9797
def __init__(self, target, share_name, username, password, domain, user, cmd, file, task, location, doKerberos=False, aesKey=None, remoteHost=None, kdcHost=None, hashes=None, logger=None, tries=None, share=None):

0 commit comments

Comments
 (0)