mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
feat: 添加Telnet测试靶场
This commit is contained in:
parent
5789017d1a
commit
e7d9354284
18
TestDocker/Telnet/Dockerfile
Normal file
18
TestDocker/Telnet/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM busybox:latest
|
||||
|
||||
# 安装必要的包
|
||||
RUN ["busybox", "telnetd", "--help"]
|
||||
|
||||
# 创建测试用户
|
||||
RUN adduser -D -h /home/test test && \
|
||||
echo "test:123456" | chpasswd
|
||||
|
||||
# 创建弱密码管理员
|
||||
RUN adduser -D -h /home/admin admin && \
|
||||
echo "admin:admin" | chpasswd
|
||||
|
||||
# 暴露 Telnet 端口
|
||||
EXPOSE 23
|
||||
|
||||
# 启动 Telnet 服务
|
||||
CMD ["busybox", "telnetd", "-F", "-l", "/bin/sh"]
|
0
TestDocker/Telnet/README.md
Normal file
0
TestDocker/Telnet/README.md
Normal file
Loading…
Reference in New Issue
Block a user