write-ups-challenges-2022-2023/k8s_easter_eggs/part3/SOLUTION.md
2022-11-24 22:59:22 +01:00

441 B

Difficulty

Medium

How to Solve

Exec into database pod with password the from flag 1. Find flag in database.

kubectl get pods -n my-first-project # Use the id of the postgres pod in the next command
kubectl exec -it -n my-first-project postgres-c7b99567f-tbf9b -- /bin/bash
psql --user klarrio # use flag from challenge 1
select * from flags; # table can be found with `\dt`

Flag

IGCTF-KLARRIO{lets_all_love_postgres}