mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Add openssl-enc commands (#41)
This commit is contained in:
parent
a659ed5d5f
commit
cda1654809
24
_gtfobins/openssl.md
Normal file
24
_gtfobins/openssl.md
Normal 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"
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user