mirror of
https://github.com/carlospolop/PEASS-ng
synced 2025-03-25 05:46:23 +01:00
Merge pull request #429 from shadowabi/master
Update 3_cloud.sh for check_cvm
This commit is contained in:
commit
f296f659b6
@ -168,9 +168,9 @@ echo ""
|
|||||||
if [ "$is_tencent_cvm" = "Yes" ]; then
|
if [ "$is_tencent_cvm" = "Yes" ]; then
|
||||||
tencent_req=""
|
tencent_req=""
|
||||||
if [ "$(command -v curl)" ]; then
|
if [ "$(command -v curl)" ]; then
|
||||||
tencent_req='curl -sfkG'
|
tencent_req='curl --connect-timeout 2 -sfkG'
|
||||||
elif [ "$(command -v wget)" ]; then
|
elif [ "$(command -v wget)" ]; then
|
||||||
tencent_req='wget -q -O '
|
tencent_req='wget -q --timeout 2 --tries 1 -O -'
|
||||||
else
|
else
|
||||||
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
echo "Neither curl nor wget were found, I can't enumerate the metadata service :("
|
||||||
fi
|
fi
|
||||||
@ -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 " Key: "$(eval $tencent_req "http://169.254.0.23/latest/meta-data/public-keys/${key}openssh-key")
|
||||||
echo " =============="
|
echo " =============="
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
print_3title "User Data"
|
||||||
|
eval $tencent_req http://169.254.0.23/latest/user-data; echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$is_aliyun_ecs" = "Yes" ]; then
|
if [ "$is_aliyun_ecs" = "Yes" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user