MCPcopy
hub / github.com/Pennyw0rth/NetExec / process_errors

Method process_errors

nxc/modules/masky.py:106–121  ·  view source on GitHub ↗
(self, context, tracker)

Source from the content-addressed store, hash-verified

104 add_user_bh(user.name, user.domain, context.log, connection.config)
105
106 def process_errors(self, context, tracker):
107 ret = True
108
109 if tracker.last_error_msg:
110 context.log.fail(tracker.last_error_msg)
111 ret = False
112
113 if not tracker.files_cleaning_success:
114 context.log.fail("Fail to clean files related to Masky")
115 context.log.fail(f"Please remove the files named '{tracker.agent_filename}', '{tracker.error_filename}', '{tracker.output_filename}' & '{tracker.args_filename}' within the folder '\\Windows\\Temp\\'")
116 ret = False
117
118 if not tracker.svc_cleaning_success:
119 context.log.fail(f"Fail to remove the service named '{tracker.svc_name}', please remove it manually")
120 ret = False
121 return ret

Callers 1

on_admin_loginMethod · 0.95

Calls 1

failMethod · 0.80

Tested by

no test coverage detected