From b1ba4b572b5f6886c2c3e3b31f27c1f76ec68ccd Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Thu, 24 Dec 2020 08:47:24 +0100 Subject: [PATCH] add data source for install --- data/install.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/install.json diff --git a/data/install.json b/data/install.json new file mode 100644 index 0000000..b5e6833 --- /dev/null +++ b/data/install.json @@ -0,0 +1,15 @@ +{ + "description": "This can be run with elevated privileges to change permissions ('6' denotes the SUID bits) and then read, write, or execute a copy of the file.", + "functions": { + "suid": [ + { + "code": "TF=$(mktemp)\n./install -m 6777 [file] $TF\n" + } + ], + "sudo": [ + { + "code": "TF=$(mktemp)\nsudo install -m 6777 [file] $TF\n" + } + ] + } +}