refactor: wrong logging. -> logger.

This commit is contained in:
Dobin Rutishauser
2025-06-10 12:36:40 +02:00
parent 4443827fcf
commit fcb40ccb6a
7 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -204,10 +204,10 @@ def start_real(settings: Settings) -> bool:
# CHECK if all are available in infectable, or abort (early check)
functions = project.injectable.get_unresolved_iat()
if len(functions) != 0 and settings.fix_missing_iat == False:
logging.error("IAT entries not found in infectable: {}".format(", ".join(functions)))
logging.error("The carrier depends on these functions, but they are not available in the infectable exe.")
logging.error("Use another infectable exe, or update the carrier to not depend on these functions.")
logging.error(" or dont use --no-fix-iat")
logger.error("IAT entries not found in infectable: {}".format(", ".join(functions)))
logger.error("The carrier depends on these functions, but they are not available in the infectable exe.")
logger.error("Use another infectable exe, or update the carrier to not depend on these functions.")
logger.error(" or dont use --no-fix-iat")
return False
# ASSEMBLE: Assemble .asm to .shc (ASM -> SHC)