diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | HAPPY_USERS.md | 3 | ||||
-rw-r--r-- | include/helper_generate | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d38dade..1ec27aec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - KRNL-5728 - Handle zipped kernel configuration correctly - KRNL-5830 - Improved version detection for non-symlinked kernel - MALW-3280 - Extended detection of BitDefender +- Fix: hostid generation routine would sometimes show too short IDs - Generic improvements for macOS - Fix: language detection - German translation updated diff --git a/HAPPY_USERS.md b/HAPPY_USERS.md index 57c363a9..53677c52 100644 --- a/HAPPY_USERS.md +++ b/HAPPY_USERS.md @@ -33,3 +33,6 @@ installed on all my systems to uncover unexpected configuration issues. The valuable feedback and contributions give me the energy to continue to work on its development, even after 12+ years! +* Catalyst.net IT - January 2020 +Lynis gave us great insight in to the security state of our systems, as well as where we can improve. + diff --git a/include/helper_generate b/include/helper_generate index 67b58b66..f3a8d909 100644 --- a/include/helper_generate +++ b/include/helper_generate @@ -51,8 +51,10 @@ if [ $# -gt 0 ]; then ;; *) # xxd does not exist on FreeBSD - HOSTID=$(head -c20 < /dev/urandom | hexdump -ve '"%.2x"') - HOSTID2=$(head -c32 < /dev/urandom | hexdump -ve '"%.2x"') + # Note: hexdump may omit leading or trailing zeroes. + # Take 100 characters as input, turn to hex, then take first 40/64. + HOSTID=$(head -c100 < /dev/urandom | hexdump -ve '"%.2x"' | head -c40) + HOSTID2=$(head -c100 < /dev/urandom | hexdump -ve '"%.2x"' | head -c64) ;; esac |