refactor: move some stuff from exehost to superpe

This commit is contained in:
Dobin
2024-03-06 20:10:14 +00:00
parent 4a489a3183
commit 3e5de0e608
3 changed files with 64 additions and 49 deletions
+16
View File
@@ -37,6 +37,22 @@ class SourceStyle(Enum):
iat_reuse = "iat_reuse"
class PeRelocEntry():
def __init__(self, rva: int, base_rva: int, type: str):
self.rva: int = rva
self.base_rva: int = base_rva
self.offset: int = rva - base_rva
self.type: str = type
class IatEntry():
def __init__(self, dll_name: str, func_name: str, iat_vaddr: int):
self.dll_name: str = dll_name
self.func_name: str = func_name
self.iat_vaddr: int = iat_vaddr
# no slash at end
build_dir = "working/build"
logs_dir = "working/logs"