Skip to content

Commit

Permalink
Merge pull request #549 from pagabuc/apihooks_refactor
Browse files Browse the repository at this point in the history
refactor in plt_hook_info
  • Loading branch information
gleeda authored Dec 6, 2018
2 parents 2a69fab + 76c3f09 commit 0335b6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions volatility/plugins/overlays/linux/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,8 @@ def ldrmodules(self):

def plt_hook_info(self):
elfs = dict()

task_proc_maps = list(self.get_proc_maps())

for elf, elf_start, elf_end, soname, needed in self.elfs():
elfs[(self, soname)] = (elf, elf_start, elf_end, needed)

Expand Down Expand Up @@ -1471,7 +1472,7 @@ def plt_hook_info(self):

hookdesc = ''
vma = None
for i in task.get_proc_maps():
for i in task_proc_maps:
if addr >= i.vm_start and addr < i.vm_end:
vma = i
break
Expand Down

0 comments on commit 0335b6f

Please sign in to comment.