Skip to main content

flAWS 2 Attacker 2

okay lets look into question and the lesson learnt ...

Screenshot 2026-06-18 at 12 27 51

look at the hint ... description is telling us to search the ecr repository named level2 ..

Screenshot 2026-06-18 at 12 34 03

we tried listing all ecr repo but we got access denied ... so lets try something different ..

Screenshot 2026-06-18 at 12 35 20

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

Screenshot 2026-06-18 at 12 51 28

after pulling the container .. run it ... and find for level3 file ...

Screenshot 2026-06-18 at 12 51 52

and here we go .. we got it