Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kubelet exec #55

Merged
merged 3 commits into from
Jul 1, 2022
Merged

add kubelet exec #55

merged 3 commits into from
Jul 1, 2022

Conversation

404tk
Copy link
Contributor

@404tk 404tk commented Jun 26, 2022

Exploit: kubelet-exec

Use the default '10250' port 'kubelet' service to list pods running in the cluster.
By default, unauthorized access is supported. The token can be entered optionally.

利用默认10250端口kubelet服务列举集群中运行的pods,支持指定pods执行系统命令并回显。
默认支持未授权访问利用,token可选择性填写。

Usage

./cdk run kubelet-exec (list|exec) <endpoint>/<namespace>/<pod>/<container> <token>

Example

./cdk run kubelet-exec list http://172.16.61.10:10250
./cdk run kubelet-exec exec https://172.16.61.10:10250/kube-system/test1/test "ip addr"

@neargle
Copy link
Member

neargle commented Jun 30, 2022

这里建议补充一个 list 和 exec 子命令的利用截图案例。

@404tk
Copy link
Contributor Author

404tk commented Jun 30, 2022

image

@neargle neargle merged commit c3749bf into cdk-team:main Jul 1, 2022
@404tk 404tk deleted the kubelet_exec branch July 16, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants