feature: inject into dll basic support

This commit is contained in:
Dobin
2024-04-07 13:15:55 +01:00
parent f9b5dc8346
commit a488cf1b17
8 changed files with 47 additions and 31 deletions
+5
View File
@@ -34,6 +34,7 @@ class SuperPe():
def __init__(self, infile: str):
self.filepath: str = infile
self.pe_sections: List[PeSection] = []
self.pe = pefile.PE(infile, fast_load=False)
for section in self.pe.sections:
@@ -47,6 +48,10 @@ class SuperPe():
self.ptrSize = 8
def is_dll(self):
return self.filepath.endswith(".dll")
def is_64(self) -> bool:
return self.arch == 'x64'