Skip to content

Commit d65a147

Browse files
committed
Update TSCH_EXEC class constructor
1 parent b84454f commit d65a147

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def on_admin_login(self, context, connection):
173173
self.logger.display("Connecting to the remote Service control endpoint")
174174
try:
175175
exec_method = TSCH_EXEC(
176-
connection.host if not connection.kerberos else connection.hostname + "." + connection.domain,
176+
connection.host if not connection.kerberos else f"{connection.hostname}.{connection.domain}",
177177
connection.smb_share_name,
178178
connection.username,
179179
connection.password,
@@ -186,11 +186,6 @@ def on_admin_login(self, context, connection):
186186
self.logger,
187187
connection.args.get_output_tries,
188188
connection.args.share,
189-
self.run_task_as,
190-
self.command_to_run,
191-
self.output_filename,
192-
self.task_name,
193-
self.output_file_location,
194189
)
195190

196191
if self.show_output is False:

0 commit comments

Comments
 (0)