From 2d576fe918b5800f3b588840f1bd9366d5785653 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Thu, 1 Dec 2022 14:00:24 +0000 Subject: [PATCH] split scripts --- SecScripts/mt-sec-audit.sh | 2 +- SecScripts/pre.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 SecScripts/pre.sh diff --git a/SecScripts/mt-sec-audit.sh b/SecScripts/mt-sec-audit.sh index 3db00c7..5eacc39 100644 --- a/SecScripts/mt-sec-audit.sh +++ b/SecScripts/mt-sec-audit.sh @@ -26,7 +26,7 @@ cd lynis sudo ./lynis audit system -Q --auditor "$AUDITORNAME" >> $REPORTOUTPUT sudo ./lynis audit system --pentest --auditor "$AUDITORNAME" >> $REPORTOUTPUT -sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/SecScripts/test-lockdown.sh)" >> $REPORTOUTPUT +sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/PurpleComputing/helpful-scripts/main/SecScripts/test-lockdown.sh)" bash audit >> $REPORTOUTPUT sudo chmod 777 /var/log/lynis-report.dat sudo chmod 777 $REPORTOUTPUT diff --git a/SecScripts/pre.sh b/SecScripts/pre.sh new file mode 100644 index 0000000..13749f6 --- /dev/null +++ b/SecScripts/pre.sh @@ -0,0 +1,4 @@ +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + +brew install git +brew install python3 \ No newline at end of file