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