mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
40 lines
708 B
Python
40 lines
708 B
Python
from enum import Enum
|
|
import os
|
|
|
|
class FilePath(str):
|
|
pass
|
|
|
|
|
|
# Correlated with real template files
|
|
# in plugins/
|
|
|
|
class AllocStyle(Enum):
|
|
RWX = "rwx_1"
|
|
#RW_X = "rw_x"
|
|
#REUSE = "reuse"
|
|
|
|
class ExecStyle(Enum):
|
|
CALL = "direct_1",
|
|
#JMP = 2,
|
|
#FIBER = 3,
|
|
|
|
class DecoderStyle(Enum):
|
|
PLAIN_1 = "plain_1"
|
|
XOR_1 = "xor_1"
|
|
|
|
class DataRefStyle(Enum):
|
|
APPEND = 1
|
|
|
|
#class InjectStyle(Enum):
|
|
|
|
class SourceStyle(Enum):
|
|
peb_walk = 1
|
|
iat_reuse = 2
|
|
|
|
|
|
build_dir = "build"
|
|
|
|
main_c_file = os.path.join(build_dir, "main.c")
|
|
main_asm_file = os.path.join(build_dir, "main.asm")
|
|
main_exe_file = os.path.join(build_dir, "main.exe")
|
|
main_shc_file = os.path.join(build_dir, "main.bin") |