Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect /proc/net on default volatile collection #218

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions acquire/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,18 @@ def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector
collector.collect(spec, follow=False, volatile=True)


@register_module("--proc-net")
@local_module
class ProcNet(Module):
DESC = "Procfs network files (live systems only)"
EXEC_ORDER = ExecutionOrder.BOTTOM

@classmethod
def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector) -> None:
spec = [("dir", "/proc/net")]
collector.collect(spec, follow=False, volatile=True)


@register_module("-n", "--ntfs")
class NTFS(Module):
DESC = "NTFS filesystem metadata"
Expand Down Expand Up @@ -2090,27 +2102,28 @@ class VolatileProfile:
WinArpCache,
WinRDPSessions,
WinDnsClientCache,
ProcNet,
)
EXTENSIVE = (
FULL = (
Proc,
Sys,
)


VOLATILE = {
"default": {
"full": {
"windows": VolatileProfile.DEFAULT,
"linux": [],
"bsd": [],
"esxi": [],
"linux": VolatileProfile.FULL,
"bsd": VolatileProfile.FULL,
"esxi": VolatileProfile.FULL,
"osx": [],
"proxmox": [],
},
"extensive": {
"default": {
"windows": VolatileProfile.DEFAULT,
"linux": VolatileProfile.EXTENSIVE,
"bsd": VolatileProfile.EXTENSIVE,
"esxi": VolatileProfile.EXTENSIVE,
"linux": [],
"bsd": [],
"esxi": [],
"osx": [],
"proxmox": [],
},
Expand Down
Loading