From 710148098ef24592d7e03675d3af7572b929821c Mon Sep 17 00:00:00 2001 From: Dov Murik Date: Tue, 12 Jun 2018 14:07:03 +0000 Subject: [PATCH] Add fmt, fold, sed --- _gtfobins/fmt.md | 17 +++++++++++++++++ _gtfobins/fold.md | 15 +++++++++++++++ _gtfobins/sed.md | 15 +++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 _gtfobins/fmt.md create mode 100644 _gtfobins/fold.md create mode 100644 _gtfobins/sed.md diff --git a/_gtfobins/fmt.md b/_gtfobins/fmt.md new file mode 100644 index 0000000..028e561 --- /dev/null +++ b/_gtfobins/fmt.md @@ -0,0 +1,17 @@ +--- +description: | + The read file content is not binary-safe. +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo fmt -pNON_EXISTING_PREFIX "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./fmt -pNON_EXISTING_PREFIX "$LFILE" + file-read: + - code: | + LFILE=file_to_read + fmt -pNON_EXISTING_PREFIX "$LFILE" +--- diff --git a/_gtfobins/fold.md b/_gtfobins/fold.md new file mode 100644 index 0000000..275b96c --- /dev/null +++ b/_gtfobins/fold.md @@ -0,0 +1,15 @@ +--- +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo fold -w99999999 "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./fold -w99999999 "$LFILE" + file-read: + - code: | + LFILE=file_to_read + fold -w99999999 "$LFILE" +--- diff --git a/_gtfobins/sed.md b/_gtfobins/sed.md new file mode 100644 index 0000000..e6df243 --- /dev/null +++ b/_gtfobins/sed.md @@ -0,0 +1,15 @@ +--- +functions: + sudo-enabled: + - code: | + LFILE=file_to_read + sudo sed -e '' "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_read + ./sed -e '' "$LFILE" + file-read: + - code: | + LFILE=file_to_read + sed -e '' "$LFILE" +---