categories: []
date: '2023-10-30T17:27:18.805137+08:00'
tags: []
title: Kubernetes Goat 15 - Hidden in layers
updated: 2023-10-30T17:27:18.416+8:0

Hidden in layers

隐藏在层中

kubectl get jobs
kubectl describe job 
  • 找到hidden-in-layers-czrlb
kubectl get pod hidden-in-layers-czrlb -o yaml
  • 找到完整的镜像名字,拉取镜像
docker pull madhuakula/k8s-goat-hidden-in-layers:latest
  • 通过利用 docker 内置命令将 docker 镜像导出为 tar 文件
docker save madhuakula/k8s-goat-hidden-in-layers -o hidden-in-layers.tar
./dive madhuakula/k8s-goat-hidden-in-layers
  • 得知敏感文件和路径

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/Snipaste_2023-10-30_17-42-36_d41d8cd98f00b204e9800998ecf8427e.jpg

  • 解压上面的的hidden-in-layers.tar文件
  • 根据上面的路径找到文件

https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/Snipaste_2023-10-30_17-45-42_d41d8cd98f00b204e9800998ecf8427e.jpg

结束