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

Method display

nxc/logger.py:132–137  ·  view source on GitHub ↗

Display text to console, formatted for nxc

(self, msg, *args, **kwargs)

Source from the content-addressed store, hash-verified

130
131 @no_debug
132 def display(self, msg, *args, **kwargs):
133 """Display text to console, formatted for nxc"""
134 msg, kwargs = self.format(f"{colored('[*]', 'blue', attrs=['bold'])} {msg}", kwargs)
135 text = Text.from_ansi(msg)
136 nxc_console.print(text, *args, **kwargs)
137 self.log_console_to_file(text, *args, **kwargs)
138
139 @no_debug
140 def success(self, msg, color="green", *args, **kwargs):

Callers 15

mainFunction · 0.80
config.pyFile · 0.80
first_run_setupFunction · 0.80
on_admin_loginMethod · 0.80
on_loginMethod · 0.80
on_admin_loginMethod · 0.80
on_admin_loginMethod · 0.80
process_resultsMethod · 0.80
on_admin_loginMethod · 0.80
on_admin_loginMethod · 0.80
on_loginMethod · 0.80
browse_pathMethod · 0.80

Calls 2

formatMethod · 0.95
log_console_to_fileMethod · 0.95

Tested by

no test coverage detected