From 4729297b8cc7e8308f48359269f397eb3143ecce Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Thu, 1 Dec 2022 12:52:45 +0000 Subject: [PATCH] updated --- SecScripts/mt-sec-audit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SecScripts/mt-sec-audit.sh b/SecScripts/mt-sec-audit.sh index d0a5e4b..8fd4fff 100644 --- a/SecScripts/mt-sec-audit.sh +++ b/SecScripts/mt-sec-audit.sh @@ -5,6 +5,7 @@ AUDITORNAME="Michael Tanner" REPORTFILE="report.log" LOGFILE="audit.log" LOGDIR="/tmp/PurpleAudit/Log" +REPORTOUTPUT=/Users/$(stat -f "%Su" /dev/console)/Desktop/MacReport.rtf export AUDITORNAME LOGDIR LOGFILE REPORTFILE @@ -19,7 +20,7 @@ brew install git git clone https://github.com/CISOfy/lynis cd lynis -./lynis audit system -Q --auditor="$AUDITORNAME" >> /Users/$(stat -f "%Su" /dev/console)/Desktop/MacReport.rtf +./lynis audit system -Q --auditor="$AUDITORNAME" >> $REPORTOUTPUT chmod 777 /var/log/lynis-report.dat - +chmod 777 $REPORTOUTPUT