Redeemer - HTB
Important notes⌗
- Target IP -> 10.129.47.66
Task 1 - Which TCP port is open on the machine?⌗
We know from the task that the port ends with a 9 and have 4 numbers.
Using a nmap <ip> -sC -sV -p1000-9999 -T5
we can search all the ports between 1000 and 9999. The -T5
is used for faster but less accurate scanning.
Answer: 6379
Task 2 - Which service is running on the port that is open on the machine?⌗
Answer: redis
Task 3 - What type of database is Redis? Choose from the following options: (i) In-memory Database, (ii) Traditional Database⌗
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.⌗
Answer: redis-cli
Task 5 - Which flag is used with the Redis command-line utility to specify the hostname?⌗
Answer: -h
Task 6 - Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?⌗
Answer: INFO
Task 7 - What is the version of the Redis server being used on the target machine?⌗
Answer: 5.0.7
Task 8 - Which command is used to select the desired database in Redis?⌗
Answer: select
Task 9 - How many keys are present inside the database with index 0?⌗
Answer: 4
Task 10 - Which command is used to obtain all the keys in a database?⌗
Answer: KEYS *
Let’s connect to the redis database and look for the flag.