1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 06:31:33 +01:00
GTFOBins.github.io/_gtfobins/gzip
Sofia Engvall 967d8b77a8 Add gzip file-read capabilities
Close #473.

Co-Authored-By: Andrea Cardaci <cyrus.and@gmail.com>
2026-01-17 23:22:46 +01:00

16 lines
431 B
Plaintext

---
comment: |-
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.
functions:
file-read:
- code: |-
gzip -c /path/to/input-file | gzip -d
contexts:
capabilities:
list:
- CAP_DAC_OVERRIDE
sudo:
suid:
unprivileged:
...