# Redeemer

## Enumeration

The first nmap scan was pretty straightforward:

`sudo nmap -p- <IP>`

```
PORT     STATE SERVICE VERSION
6379/tcp open  redis   Redis key-value store 5.0.7
```

## Discovering Redis

A little research on redis was necessary, then I installed redis-cli and got access to the database:

```
redis-cli -h <TARGETIP>
> INFO
> KEYS *
> GET flag
```

I could get access like that because anonymous login was allowed. As seen here, with some more research on how to navigate around Redis databases I could find the flag. Interesting to know here is, that Redis is an in-memory database.

INFO can be used to check the version and how many keys are there in each database.

KEYS \* can be used to show all keys by name.


---

# 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://shibudocs.gitbook.io/htb-writeups/boxes-very-easy/redeemer.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.
