fully functional beta 2.0

This commit is contained in:
Toni de la Fuente
2018-03-26 22:54:21 -04:00
parent 6647702d90
commit 2648067ac6
4 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
GROUP_ID[5]='level1' GROUP_ID[5]='cislevel1'
GROUP_NUMBER[5]='5.0' GROUP_NUMBER[5]='5.0'
GROUP_TITLE[5]='CIS Level 1 **********************************************************' GROUP_TITLE[5]='CIS Level 1 **********************************************************'
GROUP_RUN_BY_DEFAULT[5]='N' # run it when execute_all is called GROUP_RUN_BY_DEFAULT[5]='N' # run it when execute_all is called

View File

@@ -1,4 +1,4 @@
GROUP_ID[6]='level2' GROUP_ID[6]='cislevel2'
GROUP_NUMBER[6]='6.0' GROUP_NUMBER[6]='6.0'
GROUP_TITLE[6]='CIS Level 2 **********************************************************' GROUP_TITLE[6]='CIS Level 2 **********************************************************'
GROUP_RUN_BY_DEFAULT[6]='N' # run it when execute_all is called GROUP_RUN_BY_DEFAULT[6]='N' # run it when execute_all is called

View File

@@ -75,7 +75,7 @@ textTitle(){
if [[ "$ITEM_SCORED" == "Scored" ]]; then if [[ "$ITEM_SCORED" == "Scored" ]]; then
echo -e "\n$BLUE $TITLE_ID $NORMAL $TITLE_TEXT" echo -e "\n$BLUE $TITLE_ID $NORMAL $TITLE_TEXT"
else else
echo -e "\n$PURPLE $TITLE_ID $TITLE_TEXT $NORMAL" echo -e "\n$PURPLE $TITLE_ID $TITLE_TEXT $NORMAL"
fi fi
fi fi
} }

18
prowler
View File

@@ -11,7 +11,7 @@
# #
# Author: Toni de la Fuente - @ToniBlyx - https://blyx.com/contact # Author: Toni de la Fuente - @ToniBlyx - https://blyx.com/contact
# http://prowler.cloud # http://prowler.cloud
# Prowler - Iron Maiden # Prowler - Iron Maiden
# #
@@ -199,7 +199,7 @@ execute_check() {
# Function to execute all checks in a group # Function to execute all checks in a group
execute_group() { execute_group() {
show_group_title $1 show_group_title $1
# run the checks in the group # run the checks in the group
IFS=',' read -ra CHECKS <<< ${GROUP_CHECKS[$1]} IFS=',' read -ra CHECKS <<< ${GROUP_CHECKS[$1]}
for i in ${CHECKS[@]}; do for i in ${CHECKS[@]}; do
execute_check $i execute_check $i
@@ -208,12 +208,14 @@ execute_group() {
# Function to execute group by name # Function to execute group by name
execute_group_by_id() { execute_group_by_id() {
if [ "${GROUP_ID[$1]}" == "group1" ]; then
genCredReport
saveReport
fi
prowlerBanner
for i in "${!GROUP_ID[@]}"; do for i in "${!GROUP_ID[@]}"; do
if [ "${GROUP_ID[$i]}" == "$1" ]; then if [ "${GROUP_ID[$i]}" == "$1" ]; then
execute_group $i execute_group $i
else
textWarn "ERROR! Use a valid group check name (i.e. group1 or extras or forensics-ready)";
exit $EXITCODE
fi fi
done done
} }
@@ -264,12 +266,10 @@ fi
if [[ $MODE != "csv" ]]; then if [[ $MODE != "csv" ]]; then
prowlerBanner prowlerBanner
fi fi
getWhoami
genCredReport genCredReport
saveReport saveReport
getWhoami
#callCheck
execute_all execute_all
cleanTemp cleanTemp