create check files

This commit is contained in:
Toni de la Fuente
2018-03-20 23:08:35 -04:00
parent a21bff31a5
commit a98fdf7679
2 changed files with 4 additions and 3 deletions

View File

@@ -10,8 +10,7 @@ check12(){
# "Ensure multi-factor authentication (MFA) is enabled for all IAM users that have a console password (Scored)"
# List users with password enabled
COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED=$(cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$4 }' |grep true | awk '{ print $1 }')
COMMAND12=$(
for i in $COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED; do
COMMAND12=$(for i in $COMMAND12_LIST_USERS_WITH_PASSWORD_ENABLED; do
cat $TEMP_REPORT_FILE|awk -F, '{ print $1,$8 }' |grep "$i " |grep false | awk '{ print $1 }'
done)
textTitle "$ID12" "$TITLE12" "SCORED" "LEVEL1"

View File

@@ -140,6 +140,7 @@ callCheck(){
if [[ $CHECKNUMBER ]];then
case "$CHECKNUMBER" in
check11|check101 ) execute_check check11;;
check12|check102 ) execute_check check12;;
* )
textWarn "ERROR! Use a valid check name (i.e. check41 or extra71)\n";
esac
@@ -242,7 +243,8 @@ fi
getWhoami
genCredReport
saveReport
callCheck
#callCheck
execute_all