mirror of https://github.com/CISOfy/lynis.git
Changed screen output
This commit is contained in:
parent
2750e9b7b8
commit
f8b390617b
|
@ -44,11 +44,11 @@
|
||||||
if PackageIsInstalled "inetd"; then
|
if PackageIsInstalled "inetd"; then
|
||||||
INETD_PACKAGE_INSTALLED=1
|
INETD_PACKAGE_INSTALLED=1
|
||||||
LogText "Result: inetd is installed"
|
LogText "Result: inetd is installed"
|
||||||
Display --indent 2 --text "- Installation of inetd package" --result "${STATUS_FOUND}" --color YELLOW
|
Display --indent 2 --text "- Installed inetd package" --result "${STATUS_FOUND}" --color YELLOW
|
||||||
#ReportSuggestion ${TEST_NO} "If there are no inetd services required, it is recommended that the daemon be removed"
|
#ReportSuggestion ${TEST_NO} "If there are no inetd services required, it is recommended that the daemon be removed"
|
||||||
else
|
else
|
||||||
LogText "Result: inetd is NOT installed"
|
LogText "Result: inetd is NOT installed"
|
||||||
Display --indent 2 --text "- Installation of inetd package" --result "${STATUS_NOT_FOUND}" --color GREEN
|
Display --indent 2 --text "- Installed inetd package" --result "${STATUS_NOT_FOUND}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -141,11 +141,11 @@
|
||||||
PackageIsInstalled xinetd
|
PackageIsInstalled xinetd
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
LogText "Result: xinetd is installed"
|
LogText "Result: xinetd is installed"
|
||||||
Display --indent 2 --text "- Installation of xinetd package" --result "${STATUS_FOUND}" --color YELLOW
|
Display --indent 2 --text "- Installed xinetd package" --result "${STATUS_FOUND}" --color YELLOW
|
||||||
ReportSuggestion ${TEST_NO} "If there are no xinetd services required, it is recommended that the daemon be removed"
|
ReportSuggestion ${TEST_NO} "If there are no xinetd services required, it is recommended that the daemon be removed"
|
||||||
else
|
else
|
||||||
LogText "Result: xinetd is NOT installed"
|
LogText "Result: xinetd is NOT installed"
|
||||||
Display --indent 2 --text "- Installation of xinetd package" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Installed xinetd package" --result "${STATUS_OK}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -303,11 +303,11 @@
|
||||||
done
|
done
|
||||||
if [ ${FOUND} -eq 1 ]; then
|
if [ ${FOUND} -eq 1 ]; then
|
||||||
LogText "Result: rsh client is installed"
|
LogText "Result: rsh client is installed"
|
||||||
Display --indent 2 --text "- Checking rsh client installation" --result "${STATUS_SUGGESTION}" --color YELLOW
|
Display --indent 2 --text "- Installed rsh client package" --result "${STATUS_SUGGESTION}" --color YELLOW
|
||||||
ReportSuggestion ${TEST_NO} "Remove rsh client when it is not in use or replace with the more secure SSH package"
|
ReportSuggestion ${TEST_NO} "Remove rsh client when it is not in use or replace with the more secure SSH package"
|
||||||
else
|
else
|
||||||
LogText "Result: rsh client is NOT installed"
|
LogText "Result: rsh client is NOT installed"
|
||||||
Display --indent 2 --text "- Checking rsh client installation" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Installed rsh client package" --result "${STATUS_OK}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -360,12 +360,12 @@
|
||||||
done
|
done
|
||||||
if [ ${FOUND} -eq 1 ]; then
|
if [ ${FOUND} -eq 1 ]; then
|
||||||
LogText "Result: rsh server is installed"
|
LogText "Result: rsh server is installed"
|
||||||
Display --indent 2 --text "- Checking rsh server installation" --result "${STATUS_SUGGESTION}" --color YELLOW
|
Display --indent 2 --text "- Installed rsh server package" --result "${STATUS_SUGGESTION}" --color YELLOW
|
||||||
ReportSuggestion ${TEST_NO} "Remove the rsh-server package and replace with a more secure alternative like SSH"
|
ReportSuggestion ${TEST_NO} "Remove the rsh-server package and replace with a more secure alternative like SSH"
|
||||||
Report "insecure_service[]=rsh-server"
|
Report "insecure_service[]=rsh-server"
|
||||||
else
|
else
|
||||||
LogText "Result: rsh server is NOT installed"
|
LogText "Result: rsh server is NOT installed"
|
||||||
Display --indent 2 --text "- Checking rsh server installation" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Installed rsh server package" --result "${STATUS_OK}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -380,12 +380,12 @@
|
||||||
if PackageIsInstalled "${PACKAGE}"; then FOUND=1; fi
|
if PackageIsInstalled "${PACKAGE}"; then FOUND=1; fi
|
||||||
if [ ${FOUND} -eq 1 ]; then
|
if [ ${FOUND} -eq 1 ]; then
|
||||||
LogText "Result: telnet client is installed"
|
LogText "Result: telnet client is installed"
|
||||||
Display --indent 2 --text "- Checking telnet client installation" --result "${STATUS_FOUND}" --color YELLOW
|
Display --indent 2 --text "- Installed telnet client package" --result "${STATUS_FOUND}" --color YELLOW
|
||||||
# Telnet client usage might be used for troubleshooting instead of system administration
|
# Telnet client usage might be used for troubleshooting instead of system administration
|
||||||
#ReportSuggestion ${TEST_NO} "telnet client contain numerous security exposures and have been replaced with the more secure SSH package"
|
#ReportSuggestion ${TEST_NO} "telnet client contain numerous security exposures and have been replaced with the more secure SSH package"
|
||||||
else
|
else
|
||||||
LogText "Result: telnet client is NOT installed"
|
LogText "Result: telnet client is NOT installed"
|
||||||
Display --indent 2 --text "- Checking telnet client installation" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Installed telnet client package" --result "${STATUS_OK}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
@ -404,12 +404,12 @@
|
||||||
done
|
done
|
||||||
if [ ${FOUND} -eq 1 ]; then
|
if [ ${FOUND} -eq 1 ]; then
|
||||||
LogText "Result: telnet server is installed"
|
LogText "Result: telnet server is installed"
|
||||||
Display --indent 2 --text "- Checking telnet server installation" --result "${STATUS_FOUND}" --color YELLOW
|
Display --indent 2 --text "- Installed telnet server package" --result "${STATUS_FOUND}" --color YELLOW
|
||||||
ReportSuggestion ${TEST_NO} "Removing the ${FOUND} package and replace with SSH when possible"
|
ReportSuggestion ${TEST_NO} "Removing the ${FOUND} package and replace with SSH when possible"
|
||||||
Report "insecure_service[]=telnet-server"
|
Report "insecure_service[]=telnet-server"
|
||||||
else
|
else
|
||||||
LogText "Result: telnet server is NOT installed"
|
LogText "Result: telnet server is NOT installed"
|
||||||
Display --indent 2 --text "- Checking telnet server installation" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Installed telnet server package" --result "${STATUS_NOT_FOUND}" --color GREEN
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue