1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-20 12:39:21 +01:00

fix: missing do at the of for

This commit is contained in:
Esonhugh 2024-01-22 21:39:41 +08:00
parent 9865e2a5b0
commit 74ccf2c08a
No known key found for this signature in database
GPG Key ID: ABF6FEF1DE95D201

View File

@ -203,6 +203,7 @@ if [ "$is_aliyun_ecs" = "Yes" ]; then
echo " Mac private ips (v6): "$(eval $aliyun_req http://100.100.100.200/latest/meta-data/network/interfaces/macs/$mac/ipv6s)
echo " Mac gateway: "$(eval $aliyun_req http://100.100.100.200/latest/meta-data/network/interfaces/macs/$mac/gateway)
echo " Mac gateway (v6): "$(eval $aliyun_req http://100.100.100.200/latest/meta-data/network/interfaces/macs/$mac/ipv6-gateway)
done
echo ""
@ -215,12 +216,13 @@ if [ "$is_aliyun_ecs" = "Yes" ]; then
echo ""
print_3title "Possbile admin ssh Public keys"
for key in $(eval $aliyun_req "http://100.100.100.200/latest/meta-data/public-keys/")
for key in $(eval $aliyun_req "http://100.100.100.200/latest/meta-data/public-keys/") do
echo " Name: $key"
echo " Key: "$(eval $gcp_req "http://100.100.100.200/latest/meta-data/public-keys/$key/openssh-key")
echo " =============="
done
fi
fi