mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
25 lines
538 B
Markdown
25 lines
538 B
Markdown
|
---
|
||
|
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"
|
||
|
---
|