From b41d12d077acf8c3fb29b2f8327fde88d3980f45 Mon Sep 17 00:00:00 2001 From: mboelen Date: Fri, 30 Jan 2015 19:57:18 +0100 Subject: [PATCH] Decrease screen output when scanning for binaries --- include/binaries | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/include/binaries b/include/binaries index 40fd62cb..7943736b 100644 --- a/include/binaries +++ b/include/binaries @@ -24,10 +24,12 @@ # ################################################################################# # + if [ ${CHECK_BINARIES} -eq 1 ]; then InsertSection "System Tools" -# -################################################################################# -# + # + ################################################################################# + # + Display --indent 2 --text "- Scanning available tools..." logtext "Start scanning for available audit binaries and tools..." @@ -69,7 +71,6 @@ if [ ${SKIPDIR} -eq 0 ]; then logtext "Test: Checking binaries in directory ${SCANDIR}" - Display --indent 4 --text "- ${SCANDIR}" --result FOUND --color GREEN BINARY_PATHS_FOUND="${BINARY_PATHS_FOUND}, ${SCANDIR}" logtext "Directory ${SCANDIR} exists. Starting directory scanning..." FIND=`ls ${SCANDIR}` @@ -191,10 +192,8 @@ else logtext "Result: Directory ${SCANDIR} skipped" if [ ! "${ORGPATH}" = "" ]; then TEXT="${ORGPATH} (links to ${SCANDIR})"; else TEXT="${SCANDIR}"; fi - Display --indent 4 --text "- ${TEXT}" --result SKIPPED --color YELLOW fi else - Display --indent 4 --text "- ${SCANDIR}" --result "NOT FOUND" --color WHITE logtext "Result: Directory ${SCANDIR} does NOT exist" fi logtextbreak @@ -207,11 +206,10 @@ logtext "Result: found ${N} binaries" report "binaries_count=${N}" -# -################################################################################# -# -wait_for_keypress + else + logtext "Result: checking binaries skipped in this mode" + fi # #================================================================================