From 77f043efe4df867677142c5caa789b75841d6191 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sat, 17 Apr 2021 15:32:54 +0200 Subject: [PATCH] add data source for wc --- data/wc.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/wc.json diff --git a/data/wc.json b/data/wc.json new file mode 100644 index 0000000..60c76dd --- /dev/null +++ b/data/wc.json @@ -0,0 +1,20 @@ +{ + "description": "The file content is parsed as a sequence of '\\x00' separated paths. On error the file content appears in a message, so this may not be suitable to read binary files.", + "functions": { + "file-read": [ + { + "code": "wc --files0-from \"[file]\"\n" + } + ], + "suid": [ + { + "code": "./wc --files0-from \"[file]\"\n" + } + ], + "sudo": [ + { + "code": "sudo wc --files0-from \"[file]\"\n" + } + ] + } +}