Code Monkey home page Code Monkey logo

Comments (4)

mauilion avatar mauilion commented on May 20, 2024 1

https://twitter.com/mauilion/status/1025160250880454656?s=20

Neat feature of the default
@corednsio Deployment in Kubernetes

enumerate all svcs and ports in any namespace
$ dig SRV +short any.svc.cluster.local
0 16 443 kubernetes.default.svc.cluster.local.
0 16 80 web.web.svc.cluster.local.
0 16 80 web.default.svc.cluster.local.

The ports are only as valid as the services exposing them but yeah

from k8s-security.

kabachook avatar kabachook commented on May 20, 2024 1

@mauilion Wow, big thanks!

from k8s-security.

kabachook avatar kabachook commented on May 20, 2024

@mauilion Checking it on k8s 1.16, any.svc.cluster.local syntax is no longer working. A replacement is *.*.svc.cluster.local:

root@nginx-deployment-65cf964c9-5dlkr:/# dig SRV +short *.*.svc.cluster.local
0 14 443 kubernetes.default.svc.cluster.local.
0 14 53 kube-dns.kube-system.svc.cluster.local.
0 14 9153 kube-dns.kube-system.svc.cluster.local.
0 14 80 ingress-nginx.ingress-nginx.svc.cluster.local.
0 14 443 ingress-nginx.ingress-nginx.svc.cluster.local.
0 14 80 nginx-svc.default.svc.cluster.local.

from k8s-security.

kabachook avatar kabachook commented on May 20, 2024

No need to bruteforce services, since we can get them using the method above

from k8s-security.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.