> For the complete documentation index, see [llms.txt](https://cybersec.th4ntis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybersec.th4ntis.com/hackthebox/starting-point/tier-0/redeemer.md).

# Redeemer

## Initial Scan:

![](https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2F14cl5UtLkaNm4Nsys84o%2Fimage.png?alt=media\&token=49c77f15-4a04-4436-aa5c-cdd57b2ec475)

## Task 1:

#### Which TCP port is open on the machine?

Found in initial scan

Answer: 6379

## Task 2:

#### Which service is running on the port that is open on the machine?

[Redis Website](https://redis.io/)

Answer: Redis

## Task 3:

#### What type of database is Redis? Choose from the following options: (i) In-memory Database, (ii) Traditional Database

![](https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FfyzvlL4iNspCJDJZEhYX%2Fimage.png?alt=media\&token=4053584e-f53e-441b-9636-2d31c1d39ff3)

Answer: in-memory Database

## Task 4:

#### Which command-line utility is used to interact with the Redis server? Enter the program name you would enter into the terminal without any arguments.

[Redis-CLI Docs](https://redis.io/docs/manual/cli/)

Answer: Redis-CLI

## Task 5:

#### Which flag is used with the Redis command-line utility to specify the hostname?

[Redis-CLI Docs](https://redis.io/docs/manual/cli/)

Answer: -h

## Task 6:

#### Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?

[REDIS info](https://redis.io/commands/info/)

Answer: info

## Task 7:

#### What is the version of the Redis server being used on the target machine?

Found from initial scan

Answer: 5.0.7

## Task 8:

#### Which command is used to select the desired database in Redis?

[Redis Select](https://redis.io/commands/select/)

Answer: SELECT

## Task 9:

#### How many keys are present inside the database with index 0?

Run INFO

![](https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FlmpozzAbIUKi8OoPWxsR%2Fimage.png?alt=media\&token=943d38ac-d274-4730-988c-7d781b0f8f55)

Answer: 4

## Task 10:

#### Which command is used to obtain all the keys in a database?

Google: redis command to obtain all the keys in a database

Answer: keys \*

## Task 11:&#x20;

#### Submit root flag

![](https://667808901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTdW22AGCceN8oUXfdlKI%2Fuploads%2FtUvJ1RN1pT2ftVvf707u%2Fimage.png?alt=media\&token=53b81a29-b4e1-448d-86ff-b4fafa933824)

Answer: 03e1d2b376c37ab3f5319922053953eb
