HTB Redeemer
Redis
Redis(Remote Dictionary Server)是一个开源的内存型非关系型(NoSQL)键值对数据库,以高性能、低延迟和灵活性著称,广泛用于缓存、会话管理和实时数据处理。
核心特点
- 内存存储:数据存储在内存,读写速度极快(微秒级)。
- 键值存储:支持多种数据类型,如字符串、哈希、列表、集合、有序集合等。
- 持久化:支持将数据保存到磁盘(RDB 快照或 AOF 日志)。
- 高可用性:支持主从复制、哨兵(Sentinel)和集群(Cluster)模式。
- 多功能:可用作数据库、缓存、消息队列等。
Which TCP port is open on the machine?
- 6379
计算机上打开的端口上运行的是哪个服务?
- 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
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
- SELECT 命令用于切换到指定的数据库(Redis 默认支持多个数据库,编号从 0 开始,默认使用 db0)。
SELECT 1
OK
How many keys are present inside the database with index 0?
- info keyspace
- keys=4,expires=0,avg_ttl=0:描述 db0 的键数量、过期键数量和平均生存时间。
Which command is used to obtain all the keys in a database?
- keys *
Submit root flag
- 在上一个命令之后输入get flag即可