Skip to content

Commit 16af7d3

Browse files
committed
Linux - update lsmod for newer kernels
1 parent cb8643f commit 16af7d3

File tree

1 file changed

+23
-0
lines changed
  • volatility/plugins/overlays/linux

1 file changed

+23
-0
lines changed

volatility/plugins/overlays/linux/linux.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,29 @@ def promisc(self):
820820
return self.flags & 0x100 == 0x100 # IFF_PROMISC
821821

822822
class module_struct(obj.CType):
823+
824+
@property
825+
def init_size(self):
826+
if hasattr(self, "init_layout"):
827+
ret = self.m("init_layout").m("size")
828+
elif hasattr(self, "init_size"):
829+
ret = self.m("init_size")
830+
else:
831+
ret = 0
832+
833+
return ret
834+
835+
@property
836+
def core_size(self):
837+
if hasattr(self, "core_layout"):
838+
ret = self.m("core_layout").m("size")
839+
elif hasattr(self, "core_size"):
840+
ret = self.m("core_size")
841+
else:
842+
ret = 0
843+
844+
return ret
845+
823846
def _get_sect_count(self, grp):
824847
arr = obj.Object(theType = 'Array', offset = grp.attrs, vm = self.obj_vm, targetType = 'Pointer', count = 25)
825848

0 commit comments

Comments
 (0)