#!/bin/sh

#################################################################################
#
#   Lynis
# ------------------
#
# Copyright 2007-2008, Michael Boelen (michael@rootkit.nl), The Netherlands
# Web site: http://www.rootkit.nl
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License.
# See LICENSE file for usage of this software.
#
#################################################################################
#
# Malware scanners
#
#################################################################################
#
    InsertSection "Software: Malware scanners"

    # Test        : MALW-3275
    # Description : Check for installed tool (chkrootkit)
    Register --test-no MALW-3275 --weight L --network NO --description "Check for chkrootkit"
    logtext "Test: checking presence chkrootkit"
    if [ "${CHKROOTKITBINARY}" = "" ]; then
	Display --indent 2 --text "- Checking chkrootkit..." --result "NOT FOUND" --color WHITE
	logtext "Result: chkrootkit not found"
      else
	Display --indent 2 --text "- Checking chkrootkit..." --result "FOUND" --color GREEN
	logtext "Result: Found ${CHKROOTKITBINARY}"
    fi
#
#################################################################################
#
    # Test        : MALW-3276
    # Description : Check for installed tool (Rootkit Hunter) 
    Register --test-no MALW-3276 --weight L --network NO --description "Check for Rootkit Hunter"
    logtext "Test: checking presence Rootkit Hunter"
    if [ "${RKHUNTERBINARY}" = "" ]; then
	Display --indent 2 --text "- Checking Rootkit Hunter..." --result "NOT FOUND" --color WHITE
	logtext "Result: Rootkit Hunter not found"
      else
	Display --indent 2 --text "- Checking Rootkit Hunter..." --result "FOUND" --color GREEN
	logtext "Result: Found ${RKHUNTERBINARY}"
    fi
#
#################################################################################
#
    #YYY check if at least one malware scanner is installed
#
#################################################################################
#
    
wait_for_keypress

#
#================================================================================
# Lynis - Copyright 2007-2008, Michael Boelen - www.rootkit.nl - The Netherlands
