Skip to content

Commit 8790814

Browse files
authored
Merge pull request #1323 from gcmoreira/linux_netfilter_fix_hooked
Linux: netfilter plugin: Fix hooked field to match Volatility2 output
2 parents 8e355c0 + c909fdd commit 8790814

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

volatility3/framework/plugins/linux/netfilter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _run(self) -> Iterator[Tuple[int, str, str, int, int, str, bool]]:
174174
priority [int]: Priority
175175
hook_ops_hook [int]: Hook address
176176
module_name [str]: Linux kernel module name
177-
hooked [bool]: hooked?
177+
hooked [bool]: "True" if the network stack has been hijacked
178178
"""
179179
for netns, net in self.get_net_namespaces():
180180
for proto_idx, proto_name, hook_idx, hook_name in self._proto_hook_loop():
@@ -190,7 +190,7 @@ def _run(self) -> Iterator[Tuple[int, str, str, int, int, str, bool]]:
190190
priority = int(hook_ops.priority)
191191
hook_ops_hook = hook_ops.hook
192192
module_name = self.get_module_name_for_address(hook_ops_hook)
193-
hooked = module_name is not None
193+
hooked = module_name is None
194194

195195
yield netns, proto_name, hook_name, priority, hook_ops_hook, module_name, hooked
196196

@@ -675,7 +675,7 @@ class Netfilter(interfaces.plugins.PluginInterface):
675675

676676
_required_framework_version = (2, 0, 0)
677677

678-
_version = (1, 0, 0)
678+
_version = (1, 1, 0)
679679

680680
_required_linuxutils_version = (2, 1, 0)
681681
_required_lsmod_version = (2, 0, 0)

0 commit comments

Comments
 (0)