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