134 Commits

Author SHA1 Message Date
Michael Boelen
50609242c2 Only use public keys for host ID creation 2016-05-10 14:21:09 +02:00
Michael Boelen
ef23180adc Decrease length of hostid v2 as hostname is stored already 2016-05-10 11:47:33 +02:00
Michael Boelen
dfce1a770a Removed local variable assignment to prevent portability issues 2016-05-09 14:20:16 +02:00
Michael Boelen
a40331aedc Clean up unneeded log entries 2016-05-09 13:50:38 +02:00
Michael Boelen
632e8bd47a Show hardware address in log 2016-05-09 13:46:32 +02:00
Michael Boelen
788ab9999d Create a version 2 host ID 2016-05-05 17:49:41 +02:00
Michael Boelen
076c5dd093 Initial work to profile for custom configurations check (key-value) 2016-05-04 21:38:42 +02:00
Michael Boelen
eded02cfde Rewritten counters and dealing with values 2016-05-03 14:57:53 +02:00
Michael Boelen
bbdfce2b05 Performance: only use lshw at end, and when having root privileges 2016-05-03 13:15:46 +02:00
Michael Boelen
dab69d2860 Don't show errors when we are running non-privileged 2016-05-03 13:11:28 +02:00
Michael Boelen
062782e7a5 Remove blank line and space 2016-05-03 12:55:23 +02:00
Michael Boelen
efebb99da1 Add action to take when a file has not the right permissions 2016-05-02 17:13:06 +02:00
Michael Boelen
6ea27b912c Add owner and group permissions check 2016-05-02 15:45:27 +02:00
mboelen
539bd49856 Big overhaul of functions file. Cleaning up, structurizing, and adding comments 2016-04-28 12:31:38 +02:00
mboelen
9e312f5a5f Replaced functions and minor cleanups 2016-04-28 09:15:54 +02:00
mboelen
f109c318d9 Detect when weak protocols are used, simplify nginx test 2016-04-27 16:51:12 +02:00
mboelen
7c4099a7da Call WaitForKeypress from wait_for_keypress, and report this old function when called to developers 2016-04-27 16:14:22 +02:00
mboelen
f4691536ee Add nginx ssl_protocol values to report, minor adjustments to ReportDetails function 2016-04-27 16:09:29 +02:00
mboelen
6a4287bd64 Proper reference to IsDeveloperMode 2016-04-26 21:25:14 +02:00
mboelen
c98b37955c Added IsOwnedByRoot function 2016-04-26 21:20:37 +02:00
mboelen
216611259e Optimize IsWorldWritable function, with additional debugging data for developers 2016-04-26 13:52:26 +02:00
mboelen
55799a524c Added developer mode (--developer) 2016-04-26 13:40:21 +02:00
mboelen
2cefdb79d6 Log when a file is world-writable according IsWorldWritable 2016-04-26 13:34:17 +02:00
mboelen
ba0381a775 Lowercase all tests when using them in comparisons 2016-04-25 15:49:00 +02:00
mboelen
c02ab08b50 Set quiet and quickmode when using --show-warnings-only or show-warnings-only 2016-04-25 11:51:37 +02:00
mboelen
bedadd9cd1 Do not show text on screen in quiet mode 2016-04-25 11:13:27 +02:00
mboelen
2f07fa1d87 Allow show-warnings-only and --(show-)warnings-only option 2016-04-25 11:10:23 +02:00
mboelen
0f64d106b1 Changed supporting text for ReportManual function 2016-04-25 10:55:34 +02:00
mboelen
821be1ea0c Remove color between categories, to prevent new users missing that on white background 2016-04-20 14:14:10 +02:00
mboelen
560acfadf6 Log what particular atomic test has been skipped and why 2016-04-20 12:08:34 +02:00
mboelen
64561d4b07 Add IsDebug and IsVerbose functions 2016-04-19 19:44:23 +02:00
mboelen
c2d5d93fad Colored output for debug details on screen 2016-04-19 18:01:16 +02:00
mboelen
1f0261f168 Add details to AddHP function 2016-04-19 17:48:06 +02:00
mboelen
6d512f48ac Improved text for assigning hardening points 2016-04-19 17:35:45 +02:00
mboelen
a23758e21f Replace = signs to simplify parsing of data 2016-04-19 13:56:28 +02:00
mboelen
e9eae5b8b5 Allow skipping of individual tests or atomic tests 2016-04-19 12:37:00 +02:00
mboelen
461bb84b62 Use correct TEMP_FILE variable 2016-04-19 10:34:04 +02:00
mboelen
41589b14c2 Added missing ;; 2016-04-19 09:55:02 +02:00
mboelen
722703da31 Extended ReportDetails function 2016-04-19 09:53:30 +02:00
mboelen
bebf3d0bd5 Use semicolon instead of comma 2016-04-19 07:38:24 +02:00
mboelen
c5de5e6a1b Added ReportDetails to store values of atomic tests 2016-04-13 16:11:46 +02:00
mboelen
991083c13f Added new function ContainsString to search for the needle in the haystack 2016-04-13 11:48:02 +02:00
Kamil Boratyński
2465556567 features/testcases (#161)
* Implemented equal test case.

* Implemented not-equal test case.

* Implemented greater-than test case.

* Implemented greater-or-equal test case.

* Implemented less-than test case.

* Implemented less-or-eqal test case.

Added some improvements and unifications.

* Added more unifications.

* Added more logs.

* Unified not-equal test.
2016-04-10 16:32:21 +02:00
mboelen
cab2b9071c Adding --debug to Display function 2016-04-02 18:28:02 +02:00
mboelen
17c435801d Added return values to IsRunning function 2016-04-02 17:18:19 +02:00
mboelen
251b861df5 Changed function name to better reflect goal and UDP support 2016-03-30 13:45:34 +02:00
mboelen
3ad0bc9582 Renamed function to IsPortListening 2016-03-30 12:18:11 +02:00
Kamil Boratyński
1f320f68c2 Fixed IsTcpUdpListening function 2016-03-22 23:57:09 +01:00
Kamil Boratyński
3e5555fb12 Added listening function.
Listening functions checks whether there exist a service listening
on specified protocol and port.
2016-03-22 23:53:58 +01:00
mboelen
488c08c3f3 Add better description of hardening points assignment 2016-03-16 11:19:17 +01:00