This commit is contained in:
oliver committed 2026-06-22 06:38:27 -03:00
1 parent 43d2a16ac4
commit af2fe940e7
8 files changed
+114 -20

No files matched your search

-10
View File
@@ -132,16 +132,6 @@ def main():
# Users
audit["passwd"] = read_file("/etc/passwd")
# Runtime info
audit["uptime"] = cmd(["uptime"])
audit["top"] = cmd(["top", "-b", "-n", "1"]).splitlines()
# cgroups (useful in Docker)
audit["cgroup"] = read_file("/proc/self/cgroup")
# Mounted filesystems
audit["mounts"] = cmd(["mount"]).splitlines()
print(json.dumps(audit, indent=2))