mirror of
https://github.com/carlospolop/PEASS-ng
synced 2024-11-27 14:13:38 +01:00
Update 3_cloud.sh for check_cvm
Added connection timeout Settings and fixed wget syntax errors for check_cvm
This commit is contained in:
parent
74c1391d66
commit
efa0e98547
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user