Skip to content

Commit cc268f0

Browse files
committed
Remove unused lines
1 parent 5933a08 commit cc268f0

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ def on_admin_login(self, context, connection):
121121
except Exception:
122122
self.logger.debug("Error executing command via atexec, traceback:")
123123
self.logger.debug(format_exc())
124-
with contextlib.suppress(Exception):
125-
exec_method.deleteartifact()
126124
finally:
127125
if self.binary_to_upload:
128126
try:

nxc/protocols/smb/atexec.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ def execute_handler(self, command):
177177
tsch.hSchRpcDelete(dce, f"\\{self.task_name}")
178178

179179
if self.__retOutput:
180-
":".join(map(str, self.__rpctransport.get_socket().getpeername()))
181180
smbConnection = self.__rpctransport.get_smb_connection()
182181

183182
tries = 1

0 commit comments

Comments
 (0)