mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
refactor: rename function
This commit is contained in:
@@ -37,7 +37,7 @@ class ExeInfo():
|
|||||||
self.rwx_section = None
|
self.rwx_section = None
|
||||||
|
|
||||||
|
|
||||||
def add_capability(self, func_name, placeholder):
|
def add_iat_resolve(self, func_name, placeholder):
|
||||||
self.iat_resolves[func_name] = IatResolve(
|
self.iat_resolves[func_name] = IatResolve(
|
||||||
func_name, placeholder, pehelper.get_addr_for(self.iat, func_name))
|
func_name, placeholder, pehelper.get_addr_for(self.iat, func_name))
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -149,7 +149,7 @@ def fixup_iat_reuse(filename: FilePath, exe_info):
|
|||||||
|
|
||||||
randbytes: bytes = os.urandom(6)
|
randbytes: bytes = os.urandom(6)
|
||||||
lines[idx] = bytes_to_asm_db(randbytes) + "\r\n"
|
lines[idx] = bytes_to_asm_db(randbytes) + "\r\n"
|
||||||
exe_info.add_capability(func_name, randbytes)
|
exe_info.add_iat_resolve(func_name, randbytes)
|
||||||
|
|
||||||
logger.info(" > Replace func name: {} with {}".format(
|
logger.info(" > Replace func name: {} with {}".format(
|
||||||
func_name, randbytes))
|
func_name, randbytes))
|
||||||
|
|||||||
Reference in New Issue
Block a user