aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/unix_procs/unix_proc_sources.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entropy/unix_procs/unix_proc_sources.cpp')
-rw-r--r--src/entropy/unix_procs/unix_proc_sources.cpp65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/entropy/unix_procs/unix_proc_sources.cpp b/src/entropy/unix_procs/unix_proc_sources.cpp
new file mode 100644
index 000000000..6cf185064
--- /dev/null
+++ b/src/entropy/unix_procs/unix_proc_sources.cpp
@@ -0,0 +1,65 @@
+/*
+* Program List for Unix_EntropySource
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#include <botan/internal/unix_procs.h>
+
+namespace Botan {
+
+/**
+* Default Commands for Entropy Gathering
+*/
+std::vector<std::vector<std::string>> Unix_EntropySource::get_default_sources()
+ {
+ std::vector<std::vector<std::string>> srcs;
+
+ srcs.push_back({ "netstat", "-in" });
+ srcs.push_back({ "pfstat" });
+ srcs.push_back({ "vmstat", "-s" });
+ srcs.push_back({ "vmstat" });
+
+ srcs.push_back({ "arp", "-a", "-n" });
+ srcs.push_back({ "ifconfig", "-a" });
+ srcs.push_back({ "iostat" });
+ srcs.push_back({ "ipcs", "-a" });
+ srcs.push_back({ "mpstat" });
+ srcs.push_back({ "netstat", "-an" });
+ srcs.push_back({ "netstat", "-s" });
+ srcs.push_back({ "nfsstat" });
+ srcs.push_back({ "portstat" });
+ srcs.push_back({ "procinfo", "-a" });
+ srcs.push_back({ "pstat", "-T" });
+ srcs.push_back({ "pstat", "-s" });
+ srcs.push_back({ "uname", "-a" });
+ srcs.push_back({ "uptime" });
+
+ srcs.push_back({ "listarea" });
+ srcs.push_back({ "listdev" });
+ srcs.push_back({ "ps", "-A" });
+ srcs.push_back({ "sysinfo" });
+
+ srcs.push_back({ "finger" });
+ srcs.push_back({ "mailstats" });
+ srcs.push_back({ "rpcinfo", "-p", "localhost" });
+ srcs.push_back({ "who" });
+
+ srcs.push_back({ "df", "-l" });
+ srcs.push_back({ "dmesg" });
+ srcs.push_back({ "last", "-5" });
+ srcs.push_back({ "ls", "-alni", "/proc" });
+ srcs.push_back({ "ls", "-alni", "/tmp" });
+ srcs.push_back({ "pstat", "-f" });
+
+ srcs.push_back({ "ps", "-elf" });
+ srcs.push_back({ "ps", "aux" });
+
+ srcs.push_back({ "lsof", "-n" });
+ srcs.push_back({ "sar", "-A" });
+
+ return srcs;
+ }
+
+}