| 9 | |
| 10 | |
| 11 | class Project(): |
| 12 | def __init__(self, settings: Settings): |
| 13 | self.settings: Settings = settings |
| 14 | |
| 15 | # Set by init() |
| 16 | self.payload: Payload |
| 17 | self.injectable: Injectable |
| 18 | |
| 19 | |
| 20 | def init(self) -> bool: |
| 21 | self.payload: Payload = Payload(self.settings.get_payload_path()) |
| 22 | self.injectable: Injectable = Injectable(self.settings.get_inject_exe_in()) |
| 23 | |
| 24 | if not self.payload.init(): |
| 25 | return False |
| 26 | if not self.injectable.init(): |
| 27 | return False |
| 28 | return True |
| 29 | |
| 30 | |
| 31 | def print(self): |
| 32 | logger.info("Project Name: {}".format(self.settings.project_name)) |
| 33 | logger.info("Comment: {}".format(self.settings.project_comment)) |
| 34 | logger.info("Settings: {}".format(self.settings.__dict__)) |
| 35 | logger.info("Payload Path: {}".format(self.payload.payload_path)) |
| 36 | logger.info("Injectable Path: {}".format(self.injectable.exe_filepath)) |
| 37 | |
| 38 | |
| 39 | def prepare_project(project_name): |
no outgoing calls
no test coverage detected