mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-30 19:59:46 +02:00
Merge pull request #1151 from volatilityfoundation/feature/linux-replace-intunsignedlong
Linux: Replace uses of specific types with the more generic pointer
This commit is contained in:
@@ -159,7 +159,10 @@ class LinuxIntelStacker(interfaces.automagic.StackerLayerInterface):
|
||||
|
||||
# This we get for free
|
||||
aslr_shift = (
|
||||
init_task.files.cast("long unsigned int")
|
||||
int.from_bytes(
|
||||
init_task.files.cast("bytes", length=init_task.files.vol.size),
|
||||
byteorder=init_task.files.vol.data_format.byteorder,
|
||||
)
|
||||
- module.get_symbol("init_files").address
|
||||
)
|
||||
kaslr_shift = init_task_address - cls.virtual_to_physical_address(
|
||||
|
||||
@@ -66,7 +66,7 @@ class ABCKmsg(ABC):
|
||||
self._config = config
|
||||
self.vmlinux = context.modules[self._config["kernel"]]
|
||||
self.layer_name = self.vmlinux.layer_name # type: ignore
|
||||
self.long_unsigned_int_size = self.vmlinux.get_type("long unsigned int").size
|
||||
self.long_unsigned_int_size = self.vmlinux.get_type("pointer").size
|
||||
|
||||
@classmethod
|
||||
def run_all(
|
||||
|
||||
Reference in New Issue
Block a user