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

Method fail

nxc/logger.py:156–161  ·  view source on GitHub ↗

Prints a failure (may or may not be an error) - e.g. login creds didn't work

(self, msg, color="red", *args, **kwargs)

Source from the content-addressed store, hash-verified

154
155 @no_debug
156 def fail(self, msg, color="red", *args, **kwargs):
157 """Prints a failure (may or may not be an error) - e.g. login creds didn't work"""
158 msg, kwargs = self.format(f"{colored('[-]', color, attrs=['bold'])} {msg}", kwargs)
159 text = Text.from_ansi(msg)
160 nxc_console.print(text, *args, **kwargs)
161 self.log_console_to_file(text, *args, **kwargs)
162
163 def log_console_to_file(self, text, *args, **kwargs):
164 """Log the console output to a file

Callers 15

mainFunction · 0.80
reflect_tableMethod · 0.80
parse_credentialsMethod · 0.80
loginMethod · 0.80
log_console_to_fileMethod · 0.80
on_admin_loginMethod · 0.80
on_loginMethod · 0.80
on_admin_loginMethod · 0.80
optionsMethod · 0.80
on_admin_loginMethod · 0.80
extract_stringsMethod · 0.80
read_and_decode_fileMethod · 0.80

Calls 2

formatMethod · 0.95
log_console_to_fileMethod · 0.95

Tested by 2

optionsMethod · 0.64
on_admin_loginMethod · 0.64