Comments (4)
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.
@mauilion Wow, big thanks!
from k8s-security.
@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.
No need to bruteforce services, since we can get them using the method above
from k8s-security.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8s-security.