# Submit Flag

## <mark style="color:purple;">Submit Flag</mark>

*Submit root flag*

***

### <mark style="color:purple;">How to</mark>

#### <mark style="color:purple;">Connecting via redis-cli</mark>

To connect via redis-cli, we'll run the following command:

```bash
redis-cli -h <target_ip>
```

***

#### <mark style="color:purple;">Obtaining the Root Flag</mark>

Now, let's find the root flag and get it.

First, we'll retrieve all the keys from the database.

```bash
keys *
```

Then, we'll get the flag.

```bash
get flag
```

<figure><img src="https://657071395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6TULCIQYFngHxc4snxrs%2Fuploads%2FNAzMgJ3x4MpCOe2TbZL9%2Fimage.png?alt=media&#x26;token=8081ee9e-3bf7-40fa-9c03-90d3f86ee50a" alt=""><figcaption><p>keys * and get flag</p></figcaption></figure>
