-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathcontainers
More file actions
19 lines (15 loc) · 743 Bytes
/
containers
File metadata and controls
19 lines (15 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# containers / docker
## docker
# extract Dockerfile from image
docker history --no-trunc --format 'RUN {{.CreatedBy}}' $image | tac
# x11 apps
xhost +si:localuser:root
docker run .. -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=DISPLAY xeyes # apt-get install -y x11-apps
xhost -si:localuser:root
# connect to host port
docker run .. --add-host=host.docker.internal:host-gateway
## kubernetes
https://medium.com/swlh/kubernetes-attack-path-part-2-post-initial-access-1e27aabda36d
https://medium.com/swlh/kubernetes-takeover-exit-the-box-44a2514f0988
https://hackernoon.com/capturing-all-the-flags-in-bsidessf-ctf-by-pwning-our-infrastructure-3570b99b4dd0
https://katanasec.com/kubernetes-security-101-best-practices-to-secure-your-cluster/