aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/unix_procs/unix_proc_sources.cpp
blob: 6cf1850645f37f3efcae559263fa4098ab87fae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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;
   }

}