ui: better output

This commit is contained in:
Dobin
2024-02-21 19:16:00 +00:00
parent ce550a5206
commit ce99a36c94
2 changed files with 8 additions and 7 deletions
+5 -5
View File
@@ -15,15 +15,15 @@ class AllocStyle(Enum):
#RW_X = "rw_x" #RW_X = "rw_x"
#REUSE = "reuse" #REUSE = "reuse"
class ExecStyle(Enum):
CALL = "direct_1",
#JMP = 2,
#FIBER = 3,
class DecoderStyle(Enum): class DecoderStyle(Enum):
PLAIN_1 = "plain_1" PLAIN_1 = "plain_1"
XOR_1 = "xor_1" XOR_1 = "xor_1"
class ExecStyle(Enum):
CALL = "direct_1"
#JMP = 2,
#FIBER = 3,
class DataRefStyle(Enum): class DataRefStyle(Enum):
APPEND = 1 APPEND = 1
+3 -2
View File
@@ -29,8 +29,9 @@ def create_c_from_template(
plugin_decoder = "" plugin_decoder = ""
plugin_executor = "" plugin_executor = ""
logger.info("--[ Create C from template: {} {} {} {} {}".format( logger.info("--[ Create C from template")
source_style.value, alloc_style.value, exec_style.value, decoder_style.value, payload_len logger.warn("---[ Loader modules = Alloc: {} Decoder: {} Exec: {}".format(
alloc_style.value, decoder_style.value, exec_style.value
)) ))
filepath = "plugins/allocator/{}.c".format(alloc_style.value) filepath = "plugins/allocator/{}.c".format(alloc_style.value)