write-ups-challenges-2022-2023/k8s_easter_eggs/part3/SOLUTION.md

16 lines
441 B
Markdown
Raw Normal View History

2022-11-24 21:59:22 +00:00
## Difficulty
Medium
## How to Solve
Exec into database pod with password the from flag 1. Find flag in database.
```bash
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}