PEASS-ng/linPEAS/builder/linpeas_parts/functions/check_aliyun_ecs.sh
2024-08-27 23:56:21 +02:00

22 lines
474 B
Bash

# Title: Cloud - check_aliyun_ecs
# ID: check_aliyun_ecs
# Author: Carlos Polop
# Last Update: 24-01-2024
# Description: Check if the script is running in Alibaba
# License: GNU GPL
# Version: 1.0
# Functions Used:
# Global Variables:
# Initial Functions:
# Generated Global Variables: $is_aliyun_ecs
# Fat linpeas: 0
# Small linpeas: 1
check_aliyun_ecs () {
is_aliyun_ecs="No"
if [ -f "/etc/cloud/cloud.cfg.d/aliyun_cloud.cfg" ]; then
is_aliyun_ecs="Yes"
fi
}