-
Notifications
You must be signed in to change notification settings - Fork 1
Writeup: Advent of Cyber 3 Day 18
AtomicNicos edited this page Dec 21, 2021
·
1 revision
Link: Advent Of Cyber 3 on TryHackMe
What command will list container images stored in your local container registry?
Answer: docker images
What command will allow you to save a docker image as a tar archive?
Answer: docker save
What is the name of the file (including file extension) for the configuration, repository tags, and layer hash values stored in a container image?
Answer: manifest.json
What is the token value you found for the bonus challenge?
Commands:
mkdir aoc
cd aoc
docker save -o aoc.tar public.ecr.aws/h0w1j9u3/grinch-aoc:latest
tar -xf aoc.tar
cat manifest.json | jq
Command: cat f886f00520700e2ddd74a14856fcc07a360c819b4cea8cee8be83d4de01e9787.json | jq
Commands:
cd 4416e55edf1a706527e19102949972f4a8d89bbe2a45f917565ee9f3b08b7682
grep -n "token" root/envconsul/config.hcl
Answer: 7095b3e9300542edadbc2dd558ac11fa