hmm
This commit is contained in:
1 parent
43d2a16ac4
commit
af2fe940e7
8 files changed
+114
-20
No files matched your search
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user