Hi Hackers Welcome Back, Today we are going to look at Hack The Box Redeemer Machine.
Info Table
Room Name | Redeemer |
---|---|
Category | Hack The Box |
OS | Linux |
Difficulty | Very Easy |
Maker | Hack The Box |
Kill Chain Summery
While enumerating ports and services we can able to find the port 6379 ware open. while tryed to connect without using any password. we got connected to Redis and get downloaded sensitive files.
Recon
let’s start with initial default scan (-sC). we did’t get any results, it shows that there is no services running on top 1000 ports. since we don’t know vulnerable target port so we can scan first 10000 ports
|
|
Databases are a collection of organized information that can be easily accessed, managed and updated.
There are different types of databases and one among them is Redis, which is an ‘in-memory’ database. In - memory databases are the ones that rely essentially on the primary memory for data storage (meaning that the database is managed in the RAM of the system); in contrast to databases that store data on the disk or SSDs. As the primary memory is significantly faster than the secondary memory, the data retrieval time in the case of ‘in-memory’ databases is very small, thus offering very efficient & minimal response times.
|
|
In-memory databases like Redis are typically used to cache data that is frequently requested for quick retrieval. We can infer from the scan result that only one port is open on the target machine, i.e. port 6379 which is running a Redis server
Redis (REmote DIctionary Server) is an open-source advanced NoSQL key-value data store used as a database, cache, and message broker. The data is stored in a dictionary format having key-value pairs. It is typically used for short term storage of data that needs fast retrieval. Redis does backup data to hard drives to provide consistency
Redis runs as server-side software so its core functionality is in its server component. The server listens for connections from clients, programmatically or through the command-line interface. The database is stored in the server’s RAM to enable fast data access. Redis also writes the contents of the database to disk at varying intervals to persist it as a backup, in case of failure.
In order to work with redis you have to install redis-cli
type this command to install it sudo apt install redis-tools
|
|
info
command is used to for gathering information
|
|
keys *
used to list the keys
|
|
get
command is used to view content of the flag
|
|
|
|