mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
ff947275a1
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
18 lines
315 B
Markdown
18 lines
315 B
Markdown
---
|
|
functions:
|
|
file-read:
|
|
- code: |
|
|
export LFILE=file_to_read
|
|
elvish -c 'echo (slurp <$E:LFILE)'
|
|
file-write:
|
|
- code: |
|
|
export LFILE=file_to_write
|
|
elvish -c 'echo DATA >$E:LFILE'
|
|
shell:
|
|
- code: elvish
|
|
suid:
|
|
- code: ./elvish
|
|
sudo:
|
|
- code: sudo elvish
|
|
---
|