IMDS Exploration
Information
FrostFest - Jack's Restroom
Conversations
Solution
Intro
Step 1
ping -c4 169.254.169.254
Step 2
curl https://169.254.169.254
curl https://169.254.169.254/latest
curl https://169.254.169.254/latest/dynamic
curl https://169.254.169.254/latest/dynamic/document
curl https://169.254.169.254/latest/dynamic/document | jq
Step 3
curl https://169.254.169.254/latest/meta-data
curl https://169.254.169.254/latest/meta-data/public-hostname
curl https://169.254.169.254/latest/meta-data/public-hostname; echo
curl https://169.254.169.254/latest/meta-data/iam/security-credentials; echo
curl https://169.254.169.254/latest/meta-data/iam/security-credentials/elfu-deploy-role; echo
Step 4
cat gettoken.sh
source gettoken.sh
echo $TOKEN
curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/placement/region
That completed the terminal!
Next: term-9