diff --git a/model.py b/model.py index f8988ce..3bdb7ba 100644 --- a/model.py +++ b/model.py @@ -93,7 +93,7 @@ class ExeInfo(): for func_name in needs: addr = pehelper.get_addr_for(self.iat, func_name) if addr == 0: - logging.warn("Not available as import: {}".format(func_name)) + logging.info("Not available as import: {}".format(func_name)) is_ok = False return is_ok diff --git a/pehelper.py b/pehelper.py index 97415d8..c752393 100644 --- a/pehelper.py +++ b/pehelper.py @@ -15,8 +15,7 @@ def extract_code_from_exe(exe_file: FilePath) -> bytes: section = get_code_section(pe) data: bytes = section.get_data() data = remove_trailing_null_bytes(data) - logger.info(" > 0x{:X} Code Size: {} (code section size: {})".format( - section.VirtualAddress, + logger.info("---[ Extract code section size: {} / {}".format( len(data), section.Misc_VirtualSize)) pe.close() return data diff --git a/phases/templater.py b/phases/templater.py index 36dac9a..0fd86b3 100644 --- a/phases/templater.py +++ b/phases/templater.py @@ -29,6 +29,10 @@ def create_c_from_template( plugin_decoder = "" plugin_executor = "" + logger.info("--[ Create C from template: {} {} {} {} {}".format( + source_style, alloc_style, exec_style, decoder_style, payload_len + )) + filepath = "plugins/allocator/{}.c".format(alloc_style.value) with open(filepath, "r", encoding='utf-8') as file: plugin_allocator = file.read()