Skip to content

Commit d3feb60

Browse files
committed
Set running_module only when module starts
1 parent cbd33e8 commit d3feb60

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

qiling/loader/pe_uefi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def execute_module(self, path: str, image_base: int, entry_point: int, context:
203203
(POINTER, SystemTable)
204204
), eoe_trap)
205205

206+
self.ql.os.running_module = path
206207
self.ql.os.entry_point = entry_point
207208
self.ql.log.info(f'Running from {entry_point:#010x} of {path}')
208209

qiling/os/uefi/uefi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ def notify_before_module_execution(self, module: str) -> bool:
9595
Returns: `True` if module execution should be thwarted, `False` otherwise
9696
"""
9797

98-
self.running_module = module
99-
10098
return bool(sum(callback(module) for callback in self.on_module_enter))
10199

102100

0 commit comments

Comments
 (0)