mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 13:11:53 +08:00
feat: 添加Redis测试靶场
This commit is contained in:
@@ -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"]
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
docker build -t redis-server .
|
||||||
|
docker run -d \
|
||||||
|
-p 6379:6379 \
|
||||||
|
--name redis-container \
|
||||||
|
redis-server
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# 允许远程访问
|
||||||
|
bind 0.0.0.0
|
||||||
|
|
||||||
|
# 关闭保护模式(允许外部连接)
|
||||||
|
protected-mode no
|
||||||
|
|
||||||
|
# 不设置密码
|
||||||
|
requirepass ""
|
||||||
|
|
||||||
|
# 后台运行
|
||||||
|
daemonize no
|
||||||
|
|
||||||
|
# 关闭持久化
|
||||||
|
appendonly no
|
||||||
Reference in New Issue
Block a user