ui: nicer output

This commit is contained in:
Dobin
2024-02-19 20:06:52 +00:00
parent ab80be8a3d
commit bf310ca343
3 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -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