Fix up linux version of mmap_iter property to get_mmap_iter.

This commit is contained in:
Mike Auty
2018-12-19 22:38:43 +00:00
parent 39634893d6
commit 70e8204113
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class Elfs(plugins.PluginInterface):
name = utility.array_to_string(task.comm)
for vma in task.mm.mmap_iter:
for vma in task.mm.get_mmap_iter():
hdr = proc_layer.read(vma.vm_start, 4, pad = True)
if not (hdr[0] == 0x7f and hdr[1] == 0x45 and hdr[2] == 0x4c and hdr[3] == 0x46):
continue
@@ -32,7 +32,7 @@ class Malfind(interfaces_plugins.PluginInterface):
proc_layer = self.context.memory[proc_layer_name]
for vma in task.mm.mmap_iter:
for vma in task.mm.get_mmap_iter():
if vma.is_suspicious() and vma.get_name(task) != "[vdso]":
data = proc_layer.read(vma.vm_start, 64, pad = True)
yield vma, data
+1 -1
View File
@@ -29,7 +29,7 @@ class Maps(plugins.PluginInterface):
name = utility.array_to_string(task.comm)
for vma in task.mm.mmap_iter:
for vma in task.mm.get_mmap_iter():
flags = vma.get_protection()
page_offset = vma.get_page_offset()
major = 0