mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
feature: check if payload fits in code section
This commit is contained in:
@@ -59,8 +59,12 @@ class ExeInfo():
|
||||
|
||||
# .text virtual address
|
||||
self.code_section = pehelper.get_code_section(pe)
|
||||
logger.info("--[ Injectable: Chosen code section: {} at 0x{:x} size: {}".format(
|
||||
self.code_section.Name.decode().rstrip('\x00'),
|
||||
self.code_section.VirtualAddress,
|
||||
self.code_section.SizeOfRawData))
|
||||
self.code_virtaddr = self.code_section.VirtualAddress
|
||||
self.code_rawsize = self.code_section.SizeOfRawData
|
||||
self.code_size = self.code_section.SizeOfRawData
|
||||
|
||||
# iat
|
||||
self.iat = pehelper.extract_iat(pe)
|
||||
|
||||
Reference in New Issue
Block a user