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