Skip to content

kCTF Learnings

Quintin edited this page Mar 13, 2023 · 6 revisions

First it is recommended to get used to kctf by running it locally. Follow the instructions here: https://google.github.io/kctf/local-testing.html

Then install the gcloud SDK. On Ubuntu 20.04 I was able to do:

sudo apt-get install apt-transport-https ca-certificates gnupg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-cli google-cloud-sdk-gke-gcloud-auth-plugin kubectl

Follow the guide here: https://google.github.io/kctf/google-cloud.html

Make sure to shut down clusters after you are done! With kctf cluster stop. This takes a while.

Clone this wiki locally