(self, link, **kwargs)
| 10 | self.agent = agent |
| 11 | |
| 12 | def run(self, link, **kwargs): |
| 13 | agent = self.__getattribute__('agent') |
| 14 | supported_platforms = self.__getattribute__('supported_platforms') |
| 15 | try: |
| 16 | if agent.platform in supported_platforms and link.executor.name in agent.executors: |
| 17 | link.command_hash = hashlib.sha256(str.encode(link.command)).hexdigest() |
| 18 | o = self.__getattribute__(link.executor.name) |
| 19 | return o(link, **kwargs) |
| 20 | except Exception: |
| 21 | logging.error('Failed to run BaseObfuscator, returning default decoded bytes') |
| 22 | |
| 23 | return self.decode_bytes(link.command) |
no test coverage detected