Kubernetes Goat 11 - Kubernetes namespaces bypass
Kubernetes namespaces bypass
Kubernetes 命名空间绕过
- 运行
hacker-container
镜像
plaintext
1 | kubectl run -it hacker-container --image=madhuakula/hacker-container -- sh |
- 报错的话运行这一条
plaintext
1 | kubectl run -it hacker-container-2 --image=madhuakula/hacker-container -- sh |
https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/Snipaste_2023-10-30_15-48-36_d41d8cd98f00b204e9800998ecf8427e.jpg
- 查看ip
- 寻找redis
plaintext
1 | nmap -sT -open -p 6379 10.244.0.0/16 |
https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/Snipaste_2023-10-30_15-55-15_d41d8cd98f00b204e9800998ecf8427e.jpg
- 连接
redis
plaintext
1 | redis-cli -h 10.244.0.7 |
https://gh.putdown.top/https://github.com/futalk/tuchuang/raw/main/img/Snipaste_2023-10-30_15-56-22_d41d8cd98f00b204e9800998ecf8427e.jpg
- 集群内还有许多其他的服务和资源,比如
ElasticSearch
,Mongo
等等
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Putdownd’s Blog!