From 875aff9b67bbfbe241979da876fe1e689569e892 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:14:33 +0100 Subject: [PATCH] add data for tee --- data/tee.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/tee.json diff --git a/data/tee.json b/data/tee.json new file mode 100644 index 0000000..55302a1 --- /dev/null +++ b/data/tee.json @@ -0,0 +1,20 @@ +{ + "description": "It can only append data if the destination exists.", + "functions": { + "file-write": [ + { + "code": "echo DATA | ./tee -a [file]\n" + } + ], + "sudo": [ + { + "code": "echo DATA | sudo tee -a [file]\n" + } + ], + "suid": [ + { + "code": "echo DATA | ./tee -a [file]\n" + } + ] + } +} \ No newline at end of file