1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/mail.md

18 lines
459 B
Markdown
Raw Normal View History

2018-05-29 20:34:56 +02:00
---
functions:
execute-interactive:
2018-07-04 20:26:52 +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-05-29 20:34:56 +02:00
sudo-enabled:
2018-07-04 20:26:52 +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
sudo mail -f $TF
!/bin/sh
2018-05-29 20:34:56 +02:00
---