mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
ui: better output
This commit is contained in:
@@ -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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user