From 852407bb02adfea5e6d3af6317334216c20aeeae Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 30 May 2018 19:20:51 +0200 Subject: [PATCH] Add tee --- _gtfobins/tee.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/tee.md diff --git a/_gtfobins/tee.md b/_gtfobins/tee.md new file mode 100644 index 0000000..f3fc36d --- /dev/null +++ b/_gtfobins/tee.md @@ -0,0 +1,16 @@ +--- +description: It can only append data if the destination exists. +functions: + sudo-enabled: + - code: | + LFILE=file_to_write + echo data | sudo tee -a "$LFILE" + suid-enabled: + - code: | + LFILE=file_to_write + echo data | ./tee -a "$LFILE" + file-write: + - code: | + LFILE=file_to_write + echo data | ./tee -a "$LFILE" +---