mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
d1d30414fe
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
14 lines
456 B
Markdown
14 lines
456 B
Markdown
---
|
|
description: This works with versions lower than 7.
|
|
functions:
|
|
file-write:
|
|
- description: Write files on the server running Redis at the specified location. Written data will appear amongst the database dump, thus it might not be suitable for all kind of purposes.
|
|
code: |
|
|
IP=127.0.0.1
|
|
redis-cli -h $IP
|
|
config set dir dir_to_write_to
|
|
config set dbfilename file_to_write
|
|
set x "DATA"
|
|
save
|
|
---
|