Skip to content

Commit

Permalink
added download link and execute step for ansible-setup to audit.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjmux committed May 1, 2021
1 parent 15a72ad commit 1f60359
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Linux/audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,24 @@ a)
if ! test -f "/root/inv/harden-$(hostname)"; then
printf "as of May 1, 2021 harden script is not functional. Don't say yes yet.\n"
printf "or do, I dare you\n"
read -r -p "Looks like harden script has not been called yet. Calling it first is HIGHLY recommended. Would you like to call that now? [Y/n] " response
read -r -p "Looks like harden script has not been called yet. Calling it first is HIGHLY recommended. Would you like to call that now? [Y/n]: " response
case "$response" in
[yY][eE][sS]|[yY])
wget https://raw.githubusercontent.com/UCI-CCDC/CCDC2021/master/harden.sh -O harden.sh && \
bash harden.sh

;;
*)
exit 1;;
;;
esac
printf "\n"
fi

#download harden script
wget https://raw.githubusercontent.com/UCI-CCDC/CCDC/testing/Linux/ansible-setup.sh
echo ""
chmod +x ansible-setup.sh
bash ansible-setup.sh

printf "\nExiting audit script now\n"
exit 1;;
Expand Down

0 comments on commit 1f60359

Please sign in to comment.