ui: nicer output

This commit is contained in:
Dobin
2024-02-19 20:34:31 +00:00
parent 2f9ba27ed1
commit fb23835d51
9 changed files with 22 additions and 22 deletions
+3 -1
View File
@@ -135,7 +135,7 @@ def start(project: Project):
asm_out = main_asm_file,
payload_len = len(project.payload_data),
short_call_patching = project.short_call_patching)
# Decide if we can use IAT_REUSE (all function calls available as import)
required_functions = phases.compiler.get_function_stubs(main_asm_file)
if project.exe_info.has_all_functions(required_functions):
@@ -143,6 +143,7 @@ def start(project: Project):
logger.warning("--[ SourceStyle: Using IAT_REUSE".format())
# all good, patch ASM
phases.compiler.fixup_iat_reuse(main_asm_file, project.exe_info)
observer.add_text("carrier_asm_updated", file_readall_text(main_asm_file))
else:
# Not good, Fall back to PEB_WALK
project.source_style = SourceStyle.peb_walk
@@ -163,6 +164,7 @@ def start(project: Project):
c_in = main_c_file,
asm_out = main_asm_file,
payload_len = len(project.payload_data))
observer.add_text("carrier_asm_updated", file_readall_text(main_asm_file))
# Assemble: ASM -> Shellcode
if project.generate_shc_from_asm: