mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: inject into dll basic support
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user