flAWS 2 Attacker 2
okay lets look into question and the lesson learnt ...
look at the hint ... description is telling us to search the ecr repository named level2 ..
we tried listing all ecr repo but we got access denied ... so lets try something different ..
so we tried getting all metadata in repo named level2
aws ecr repo follows the format <account-id>.dkr.ecr.<region>.amazonaws.com
and we already got the details above ...
so use the command
aws ecr get-login-password --region us-east-1 --profile level1-flaws2 | sudo docker login --username AWS --password-stdin 653711331788.dkr.ecr.us-east-1.amazonaws.com
use this command and you'll see login succeedded
then use docker pull command :
docker pull 653711331788.dkr.ecr.us-east-1.amazonaws.com/level2:latest
after pulling the container .. run it ... and find for level3 file ...
and here we go .. we got it