You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/docs/scenarios/scenario-4/scenario-4.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -89,15 +89,15 @@ chroot /host-system bash
89
89
- As you can see, now you can access all the host system resources like docker containers, configurations, etc.
90
90
91
91
```bash
92
-
docker ps
92
+
crictl pods
93
93
```
94
94
95
95

96
96
97
97
- The Kubernetes node configuration can be found at the default path, which is used by the node level kubelet to talk to the Kubernetes API Server. If you can use this configuration, you gain the same privileges as the Kubernetes node.
@@ -111,7 +111,7 @@ You can use the available `kubectl` command-line utility to explore other resour
111
111
- Using the kubelet configuration to list the Kubernetes cluster-wide resources
112
112
113
113
```bash
114
-
kubectl --kubeconfig /var/lib/kubelet/kubeconfig get all -n kube-system
114
+
kubectl --kubeconfig /etc/kubernetes/admin.conf get all -n kube-system
115
115
```
116
116
117
117

@@ -120,11 +120,11 @@ kubectl --kubeconfig /var/lib/kubelet/kubeconfig get all -n kube-system
120
120
121
121
From here you can go beyond by performing the lateral moment and a post-exploitation based on the available setup, configuration, and resources
122
122
:::
123
-
123
+
e
124
124
- You are able to obtain the available nodes in the Kubernetes cluster by running the following command:
125
125
126
126
```bash
127
-
kubectl --kubeconfig /var/lib/kubelet/kubeconfig get nodes
127
+
kubectl --kubeconfig /etc/kubernetes/admin.conf get nodes
128
128
```
129
129
130
130
- Hooray 🥳 , now you can see that it returns the cluster nodes available as we have the privilege/permissions with obtained configuration to query the Kubernetes API server
0 commit comments