Botan: src/entropy/unix_procs/unix_src.cpp Source File

Botan 1.10.17

unix_src.cpp
Go to the documentation of this file.
1 /*
2 * Program List for Unix_EntropySource
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #include <botan/internal/es_unix.h>
9
10 namespace Botan {
11
12 /**
13 * Default Commands for Entropy Gathering
14 */
15 std::vector<Unix_Program> Unix_EntropySource::get_default_sources()
16 {
17 std::vector<Unix_Program> srcs;
18
19 srcs.push_back(Unix_Program("netstat -in", 1));
20 srcs.push_back(Unix_Program("pfstat", 1));
21 srcs.push_back(Unix_Program("vmstat -s", 1));
22 srcs.push_back(Unix_Program("vmstat", 1));
23
24 srcs.push_back(Unix_Program("arp -a -n", 2));
25 srcs.push_back(Unix_Program("ifconfig -a", 2));
26 srcs.push_back(Unix_Program("iostat", 2));
27 srcs.push_back(Unix_Program("ipcs -a", 2));
28 srcs.push_back(Unix_Program("mpstat", 2));
29 srcs.push_back(Unix_Program("netstat -an", 2));
30 srcs.push_back(Unix_Program("netstat -s", 2));
31 srcs.push_back(Unix_Program("nfsstat", 2));
32 srcs.push_back(Unix_Program("portstat", 2));
33 srcs.push_back(Unix_Program("procinfo -a", 2));
34 srcs.push_back(Unix_Program("pstat -T", 2));
35 srcs.push_back(Unix_Program("pstat -s", 2));
36 srcs.push_back(Unix_Program("uname -a", 2));
37 srcs.push_back(Unix_Program("uptime", 2));
38
39 srcs.push_back(Unix_Program("listarea", 3));
40 srcs.push_back(Unix_Program("listdev", 3));
41 srcs.push_back(Unix_Program("ps -A", 3));
42 srcs.push_back(Unix_Program("sysinfo", 3));
43
44 srcs.push_back(Unix_Program("finger", 4));
45 srcs.push_back(Unix_Program("mailstats", 4));
46 srcs.push_back(Unix_Program("rpcinfo -p localhost", 4));
47 srcs.push_back(Unix_Program("who", 4));
48
49 srcs.push_back(Unix_Program("df -l", 4));
50 srcs.push_back(Unix_Program("dmesg", 4));
51 srcs.push_back(Unix_Program("last -5", 4));
52 srcs.push_back(Unix_Program("ls -alni /proc", 4));
53 srcs.push_back(Unix_Program("ls -alni /tmp", 4));
54 srcs.push_back(Unix_Program("pstat -f", 4));
55
56 srcs.push_back(Unix_Program("ps -elf", 5));
57 srcs.push_back(Unix_Program("ps aux", 5));
58
59 srcs.push_back(Unix_Program("lsof -n", 6));
60 srcs.push_back(Unix_Program("sar -A", 6));
61
62 return srcs;
63 }
64
65 }
Botan
Definition: algo_base.h:14