mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 23:05:05 +00:00
changed outputs to the new ones
This commit is contained in:
@@ -19,13 +19,13 @@ check13(){
|
||||
DATEUSED=$($AWSCLI iam list-users --query "Users[?UserName=='$i'].PasswordLastUsed" --output text $PROFILE_OPT --region $REGION | cut -d'T' -f1)
|
||||
HOWOLDER=$(how_older_from_today $DATEUSED)
|
||||
if [ $HOWOLDER -gt "90" ];then
|
||||
textWarn "User \"$i\" has not logged in during the last 90 days "
|
||||
textFail "User \"$i\" has not logged in during the last 90 days "
|
||||
else
|
||||
textOK "User \"$i\" found with credentials used in the last 90 days"
|
||||
textPass "User \"$i\" found with credentials used in the last 90 days"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
else
|
||||
textOK "No users found with password enabled"
|
||||
textPass "No users found with password enabled"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user