Task
- Which TCP port is open on the machine?
- 6379
- Use Nmap to run a port scan, scanning all ports with '-p-'. This can be really slow, so consider adding '--min-rate 5000' or '-T5' to speed it up. Nmap을 사용해 포트 스캔을 실행하고, '-p-'로 모든 포트를 스캔하세요. 이 과정은 매우 느릴 수 있으니, '--min-rate 5000'이나 '-T5'를 추가해 속도를 높이는 것을 고려해 보세요
- 6379
- Which service is running on the port that is open on the machine?
- redis
- What type of database is Redis? Choose from the following options: (i) In-memory Database, (ii) Traditional Database
- In-memory Database
- 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
- Which flag is used with the Redis command-line utility to specify the hostname?
- -h
- Once connected to a Redis server, which command is used to obtain the information and statistics about the Redis server?
- info
- Which command is used to select the desired database in Redis?
- select
- How many keys are present inside the database with index 0?
- 4
- Which command is used to obtain all the keys in a database?
- keys *
redis ?
데이터를 메모리에 저장하여 매우 빠른 읽/쓰기 성능을 제공하는 NoSQL DB
`redis-cli -h <IP주소>` 로 접속이 가능하다.
Info
Cluster
Connection
Geo
Hashes
HyperLogLog
Keys
Lists
Pub/Sub
Scripting
Server
Sets
Sorted Sets
Streams
Strings
Transactions
select #select db
get <keyname>
set <key name> <value>
Write Up
`nmap -p- [ip]`를 이용하여 더 넓은 범위의 port를 스캐닝해보자.

6379 port에 redis라는 서비스가 열려있음을 확인할 수 있다.
`redis-cli -h [ip]`로 redis에 접속해준다.

`info` 명령어로 서버 디테일을 확인할 수 있음.


`keys` 라는 명령어를 사용할 수도 있다.
`info`로 확인해보면, db idx 0부분에 키가 4개 들어있음을 확인할 수 있다.
`select 0`으로 0번째 db를 선택하고,`keys *` 을 통해 모든 명령어를 추출할 수 있다.


'HackTheBox' 카테고리의 다른 글
| [Tier0] Preignition (gobuster) (0) | 2026.03.28 |
|---|---|
| [Tier0] Explosion (rdp) (0) | 2026.03.28 |
| [Tier0] Dancing (smb) (1) | 2026.03.27 |
| [Tier0] Fawn (ftp) (0) | 2026.03.27 |
| [Tier0] Meow (telnet) (0) | 2026.03.27 |