From 2644399057b72f04755a928183dc03c4b2f9fc60 Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 8 Sep 2014 15:19:13 +0200 Subject: [PATCH] Display skipped root-only tests --- include/report | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/report b/include/report index 318ed027..01947c75 100644 --- a/include/report +++ b/include/report @@ -201,6 +201,23 @@ fi fi + # Display what tests are skipped in non-privileged scan for awareness + if [ ${PENTESTINGMODE} -eq 1 -a ! "${SKIPPED_TESTS_ROOTONLY}" = "" ]; then + echo "" + echo " ${PURPLE}Skipped tests due to non-privileged scan${NORMAL}" + + FIND=`echo ${SKIPPED_TESTS_ROOTONLY} | sed 's/ /:space:/g'` + # Split entries + FIND=`echo ${FIND} | sed 's/====/ /g'` + # Display found entries + for I in ${FIND}; do + J=`echo ${I} | sed 's/:space:/ /g'` + echo " ${J}" + done + echo "" + echo "================================================================================" + fi + if [ ${SHOW_TOOL_TIPS} -eq 1 ]; then echo " Tip: Disable all tests which are not relevant or are too strict for the" echo " purpose of this particular machine. This will remove unwanted suggestions"