# 10249,10250,10256 - Kubernetes API

Si te encuentras los puertos 10249, 102450 y 10256 y el servicio pone --> InfluxDB API seguramente te estés enfrentando al nodo princial de kubernetes el API Server que es llamado Kubelet.

## Enumeración con kubeletctl

{% embed url="<https://github.com/cyberark/kubeletctl>" %}
Herramienta para kubelet enumeration
{% endembed %}

Con la herramienta de arriba podemos enumerar los pods, escanear los nodos, leer los logs de determinado nodo y ejecutar comandos si tenemos permisos en un pod.

### Ejemplos

```
./kubeletctl_linux_amd64 -s 10.10.11.133 pods # enumerar pods
./kubeletctl_linux_amd64 -s 10.10.11.133 scan rce # comprobar si tenemos permisos de ejecución en algun pod
./kubeletctl_linux_amd64 -s 10.10.11.133 -p <pod> -c <container> exec "bash" # ejecutar comandos en cierto pod
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://j4ckie0x17.gitbook.io/notes-pentesting/enumeracion-de-servicios/10249-10250-10256-kubernetes-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
