Redis Pentesting
Redis is the In-Memory NoSQL Database. A default port is 6379.
Enumeration
nmap --script redis-info -p 6379 <target-ip>
nmap --script redis-brute -p 6379 <target-ip>
msf> use auxiliary/scanner/redis/redis_serverCheck Config File
find / -name "redis.conf" 2>/dev/null
grep -i pass /path/to/redis.confrequirepass "password"> auth "password"Connect
redis-cli -h <target-ip> -p 6379
# with password
redis-cli -h <target-ip> -p 6379 -a password
# using socket
redis-cli -s /path/to/redis.sockCommands (Non-RESP Format)
Investigation
Get Key Value
Set Key Value
Insert Values
Commands (RESP Format)
GET/SET Key Value Commands with Nginx Misconfiguration
NTLM Hash Disclosure
Port Forwarding Redis Server to Local Machine
Last updated