def info(self, msg, *args, **kwargs): try: if 'protocol' in self.extra.keys() and not called_from_cmd_args(): return except AttributeError: pass msg, kwargs = self.process(u'{} {}'.format(colored('[*]', 'blue', attrs=['bold']), msg), kwargs) self.logger.info(msg, *args, **kwargs)
def highlight(self, msg, *args, **kwargs): """ """ try: if 'protocol' in self.extra.keys() and not called_from_cmd_args(): return except AttributeError: pass # Adding some space before highlight(akd results) output msg, kwargs = self.process(u' {}'.format(colored(msg, 'yellow', attrs=['bold'])), kwargs) self.logger.info(msg, *args, **kwargs)
def success(self, msg, *args, **kwargs): """[+] Success messages inform the user of a successful authentication If called from an operation inside a protocol ouputs: Aug.26.19 10:40:39 SMB 10.10.33.125:445 WIN10E [+] Success Msg Used to also show successful events occuring locally, such as clearing obfuscated scripts [+] Cleared cached obfuscated PowerShell scripts """ try: if 'protocol' in self.extra.keys() and not called_from_cmd_args(): return except AttributeError: pass msg, kwargs = self.process(u'{} {}'.format(colored("[+]", 'green', attrs=['bold']), msg), kwargs) self.logger.info(msg, *args, **kwargs)
def announce(self, msg, *args, **kwargs): """[*] Displays information to user If called from an operation inside a protocol ouputs Aug.26.19 10:40:39 SMB 10.10.33.125:445 WIN10E [*] <Info Msg> When used to list information, such as when used to list modules [*] Module Module Description """ try: if 'protocol' in self.extra.keys() and not called_from_cmd_args(): return except AttributeError: pass msg, kwargs = self.process(u'{} {}'.format(colored('[*]', 'blue', attrs=['bold']), msg), kwargs) self.logger.info(msg, *args, **kwargs)