This commit is contained in:
oliver
2026-06-22 06:38:27 -03:00
parent 43d2a16ac4
commit af2fe940e7
8 changed files with 114 additions and 20 deletions
-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))