Skip to content

Commit

Permalink
Merge pull request #429 from shadowabi/master
Browse files Browse the repository at this point in the history
Update 3_cloud.sh for check_cvm
  • Loading branch information
carlospolop authored Aug 27, 2024
2 parents 463154a + 8afc352 commit f296f65
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions linPEAS/builder/linpeas_parts/3_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ echo ""
if [ "$is_tencent_cvm" = "Yes" ]; then
tencent_req=""
if [ "$(command -v curl)" ]; then
tencent_req='curl -sfkG'
tencent_req='curl --connect-timeout 2 -sfkG'
elif [ "$(command -v wget)" ]; then
tencent_req='wget -q -O '
tencent_req='wget -q --timeout 2 --tries 1 -O -'
else
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
fi
Expand Down Expand Up @@ -237,6 +237,10 @@ if [ "$is_tencent_cvm" = "Yes" ]; then
echo " Key: "$(eval $tencent_req "http://169.254.0.23/latest/meta-data/public-keys/${key}openssh-key")
echo " =============="
done

echo ""
print_3title "User Data"
eval $tencent_req http://169.254.0.23/latest/user-data; echo ""
fi

if [ "$is_aliyun_ecs" = "Yes" ]; then
Expand Down

0 comments on commit f296f65

Please sign in to comment.