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:
@@ -5,17 +5,17 @@
|
||||
#
|
||||
# extraN(){
|
||||
# # "Description (Not Scored) (Not part of CIS benchmark)"
|
||||
# textNotice "Looking for instances in all regions... "
|
||||
# textInfo "Looking for instances in all regions... "
|
||||
# for regx in $REGIONS; do
|
||||
# LIST_OF_PUBLIC_INSTANCES=$($AWSCLI ec2 describe-instances $PROFILE_OPT --region $regx --query 'Reservations[*].Instances[?PublicIpAddress].[InstanceId,PublicIpAddress]' --output text)
|
||||
# if [[ $LIST_OF_PUBLIC_INSTANCES ]];then
|
||||
# while read -r instance;do
|
||||
# INSTANCE_ID=$(echo $instance | awk '{ print $1; }')
|
||||
# PUBLIC_IP=$(echo $instance | awk '{ print $2; }')
|
||||
# textWarn "$regx: Instance: $INSTANCE_ID at IP: $PUBLIC_IP is internet-facing!" "$regx"
|
||||
# textFail "$regx: Instance: $INSTANCE_ID at IP: $PUBLIC_IP is internet-facing!" "$regx"
|
||||
# done <<< "$LIST_OF_PUBLIC_INSTANCES"
|
||||
# else
|
||||
# textOK "$regx: no Internet Facing EC2 Instances found" "$regx"
|
||||
# textPass "$regx: no Internet Facing EC2 Instances found" "$regx"
|
||||
# fi
|
||||
# done
|
||||
# }
|
||||
|
||||
Reference in New Issue
Block a user