Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lynis
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-05-03 14:49:55 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-05-03 14:49:55 +0300
commit11d3b352acd75090e53fca9fb2cbd9eb290db2f1 (patch)
tree604cf3e0c9cd549c9a2b439d94aea17f7e728a51 /lynis
parentc8c7a11e37dfb10dbbf21a952e0e706ee18c9162 (diff)
Changes to text output, show scan mode only when doing an actual scan
Diffstat (limited to 'lynis')
-rwxr-xr-xlynis22
1 files changed, 8 insertions, 14 deletions
diff --git a/lynis b/lynis
index e1c52931..0ef69bb9 100755
--- a/lynis
+++ b/lynis
@@ -193,7 +193,7 @@ Make sure to execute ${PROGRAM_NAME} from untarred directory or check your insta
if [ ${MYID} -eq 0 ]; then
PRIVILEGED=1
else
- echo "Start Lynis non-privileged"; echo "";
+ echo "Starting Lynis non-privileged"
# Implied pentesting mode if not performed by root user
PENTESTINGMODE=1
fi
@@ -419,9 +419,8 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
#
#################################################################################
#
- if [ ${PRIVILEGED} -eq 0 ]; then
- printf "%s" "
-${WHITE}
+ if [ ${PRIVILEGED} -eq 0 -a ${CHECK} -eq 1 ]; then
+ printf "%s" "${WHITE}
###################################################################
# #
# ${PURPLE}NON-PRIVILEGED SCAN MODE${WHITE} #
@@ -432,21 +431,16 @@ ${NORMAL}
--------------
${WHITE}*${NORMAL} Some tests will be skipped (as they require root permissions)
${WHITE}*${NORMAL} Some tests might fail silently or give different results
+
"
+ sleep 3
if [ "${LOGFILE}" = "" -o "${LOGFILE}" = "/dev/null" ]; then
printf "%s" "
${RED}WARNING:${NORMAL}
- ${WHITE}*${NORMAL} No suggestions or warnings will be displayed in report (due to missing log file)
-"
+ ${WHITE}*${NORMAL} No suggestions or warnings will be displayed in report (due to missing log file)"
fi
- printf "%s" "
-
- ${WHITE}Press [ENTER] to continue or [CTRL] + C to break${NORMAL}
-
- ###################################################################
-${NORMAL}
-"
- if [ ${QUICKMODE} -eq 0 ]; then read void; fi
+ #printf "\n\n%s" " ${WHITE}Press [ENTER] to continue or [CTRL] + C to break${NORMAL}"
+ #if [ ${QUICKMODE} -eq 0 ]; then read void; fi
fi
#
#################################################################################