feat(console): complete log overhaul, allowing more granular debug messages, and logging to console

main
Marshall Hallenbeck 2023-03-29 23:59:22 -04:00
parent aef6c65a9e
commit 17dc2aeabd
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ def main():
sys.exit(0)
elif args.module and args.show_module_options:
for module in args.module:
logger.info(f"{module} module options:\n{modules[module]['options']}")
cme_logger.display(f"{module} module options:\n{modules[module]['options']}")
sys.exit(0)
elif args.module:
cme_logger.debug(f"Modules to be Loaded: {args.module}, {type(args.module)}")

View File

@ -166,7 +166,7 @@ class CMEAdapter(logging.LoggerAdapter):
msg, kwargs = self.format(u'{}'.format(colored(msg, 'yellow', attrs=['bold'])), kwargs)
text = Text.from_ansi(msg)
cme_console.print(text, *args, **kwargs)
self.display(text, *args, **kwargs)
# For Impacket's TDS library
def logMessage(self, message):