Skip to content

Commit 53d5944

Browse files
authored
Collect /proc/net on default volatile collection (#218)
1 parent 2c0092b commit 53d5944

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

acquire/acquire.py

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,18 @@ def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector
302302
collector.collect(spec, follow=False, volatile=True)
303303

304304

305+
@register_module("--proc-net")
306+
@local_module
307+
class ProcNet(Module):
308+
DESC = "Procfs network files (live systems only)"
309+
EXEC_ORDER = ExecutionOrder.BOTTOM
310+
311+
@classmethod
312+
def _run(cls, target: Target, cli_args: argparse.Namespace, collector: Collector) -> None:
313+
spec = [("dir", "/proc/net")]
314+
collector.collect(spec, follow=False, volatile=True)
315+
316+
305317
@register_module("-n", "--ntfs")
306318
class NTFS(Module):
307319
DESC = "NTFS filesystem metadata"
@@ -2090,27 +2102,28 @@ class VolatileProfile:
20902102
WinArpCache,
20912103
WinRDPSessions,
20922104
WinDnsClientCache,
2105+
ProcNet,
20932106
)
2094-
EXTENSIVE = (
2107+
FULL = (
20952108
Proc,
20962109
Sys,
20972110
)
20982111

20992112

21002113
VOLATILE = {
2101-
"default": {
2114+
"full": {
21022115
"windows": VolatileProfile.DEFAULT,
2103-
"linux": [],
2104-
"bsd": [],
2105-
"esxi": [],
2116+
"linux": VolatileProfile.FULL,
2117+
"bsd": VolatileProfile.FULL,
2118+
"esxi": VolatileProfile.FULL,
21062119
"osx": [],
21072120
"proxmox": [],
21082121
},
2109-
"extensive": {
2122+
"default": {
21102123
"windows": VolatileProfile.DEFAULT,
2111-
"linux": VolatileProfile.EXTENSIVE,
2112-
"bsd": VolatileProfile.EXTENSIVE,
2113-
"esxi": VolatileProfile.EXTENSIVE,
2124+
"linux": [],
2125+
"bsd": [],
2126+
"esxi": [],
21142127
"osx": [],
21152128
"proxmox": [],
21162129
},

0 commit comments

Comments
 (0)