feat: 添加Redis测试靶场

This commit is contained in:
ZacharyZcR 2024-12-20 19:49:22 +08:00
parent 3fe6e3eec5
commit e6545417b8
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# 使用Redis官方镜像
FROM redis:latest
# 替换默认配置文件
COPY redis.conf /usr/local/etc/redis/redis.conf
# 开放6379端口
EXPOSE 6379
# 启动Redis
CMD ["redis-server", "/usr/local/etc/redis/redis.conf"]

View File

@ -0,0 +1,5 @@
docker build -t redis-server .
docker run -d \
-p 6379:6379 \
--name redis-container \
redis-server

View File

@ -0,0 +1,14 @@
# 允许远程访问
bind 0.0.0.0
# 关闭保护模式(允许外部连接)
protected-mode no
# 不设置密码
requirepass ""
# 后台运行
daemonize no
# 关闭持久化
appendonly no