From e637c45b84d40e283edebc9857ff45edd6f60481 Mon Sep 17 00:00:00 2001 From: Shadawck Date: Fri, 16 Dec 2022 16:02:30 +0100 Subject: [PATCH] Add bc Co-authored-by: Andrea Cardaci --- _gtfobins/bc.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 _gtfobins/bc.md diff --git a/_gtfobins/bc.md b/_gtfobins/bc.md new file mode 100644 index 0000000..a2f8962 --- /dev/null +++ b/_gtfobins/bc.md @@ -0,0 +1,20 @@ +--- + +description: The file content is actually parsed and appears as error messages, thus it might not be suitable to read arbitray binary files. +functions: + file-read: + - code: | + LFILE=file_to_read + bc -s $LFILE + quit + sudo: + - code: | + LFILE=file_to_read + sudo bc -s $LFILE + quit + suid: + - code: | + LFILE=file_to_read + ./bc -s $LFILE + quit +---