From 7995e1e2c75472a4819d5f6dc8796b8c792ef2b9 Mon Sep 17 00:00:00 2001 From: mboelen Date: Wed, 3 Dec 2014 23:43:48 +0100 Subject: [PATCH] Changed update check location from previous website to cisofy.com --- include/functions | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/include/functions b/include/functions index a22a0372..dcc8e147 100644 --- a/include/functions +++ b/include/functions @@ -5,8 +5,8 @@ # Lynis # ------------------ # -# Copyright 2007-2014, Michael Boelen (michael@rootkit.nl), The Netherlands -# Web site: http://www.rootkit.nl +# Copyright 2007-2014 - Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# https://cisofy.com # # This software is licensed under GPL, version 3. See LICENSE file for # usage of this software. @@ -116,21 +116,19 @@ { # Possible improvement: determine if host binary exists YYY PROGRAM_LV="0000000000"; DB_MALWARE_LV="0000000000"; DB_FILEPERMS_LV="0000000000" - LYNIS_LV_RECORD="lynis-lv.rootkit.nl." + LYNIS_LV_RECORD="lynis-latest-version.cisofy.com." FIND=`which dig 2> /dev/null` if [ ! "${FIND}" = "" ]; then - PROGRAM_LV=`dig +short +time=3 -t txt lynis-lv.rootkit.nl 2> /dev/null | grep -v "connection timed out" | sed 's/[".]//g'` - #DB_MALWARE_LV=`dig +short -t txt lynis-mw.rootkit.nl 2> /dev/null | sed 's/[".]//g'` - #DB_FILEPERMS_LV=`dig +short -t txt lynis-fp.rootkit.nl 2> /dev/null | sed 's/[".]//g'` + PROGRAM_LV=`dig +short +time=3 -t txt lynis-latest-version.cisofy.com 2> /dev/null | grep -v "connection timed out" | sed 's/[".]//g'` else FIND=`which host 2> /dev/null` if [ ! "${FIND}" = "" ]; then - PROGRAM_LV=`host -t txt -W 3 lynis-lv.rootkit.nl 2> /dev/null | grep -v "connection timed out" | awk '{ if ($1=="lynis-lv.rootkit.nl" && $3=="text") { print $4 }}' | sed 's/"//g'` + PROGRAM_LV=`host -t txt -W 3 lynis-latest-version.cisofy.com 2> /dev/null | grep -v "connection timed out" | awk '{ if ($1=="lynis-latest-version.cisofy.com" && $3=="text") { print $4 }}' | sed 's/"//g'` if [ "${PROGRAM_LV}" = "" ]; then PROGRAM_LV=0; fi else FIND=`which drill 2> /dev/null` if [ ! "${FIND}" = "" ]; then - PROGRAM_LV=`drill txt ${LYNIS_LV_RECORD} | awk '{ if ($1=="lynis-lv.rootkit.nl." && $4=="TXT") { print $5 }}' | tr -d '"'` + PROGRAM_LV=`drill txt ${LYNIS_LV_RECORD} | awk '{ if ($1=="lynis-latest-version.cisofy.com." && $4=="TXT") { print $5 }}' | tr -d '"'` if [ "${PROGRAM_LV}" = "" ]; then PROGRAM_LV=0; fi else logtext "Result: dig, drill or host not installed, update check skipped" @@ -1334,4 +1332,5 @@ #================================================================================ -# Lynis - Copyright 2007-2014, Michael Boelen - www.rootkit.nl - The Netherlands +# Lynis is part of Lynis Enterprise and released under GPLv3 license +# Copyright 2007-2014 - Michael Boelen, CISOfy - https://cisofy.com