mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 12:52:44 +08:00
feat: 添加MSSQL测试靶场
This commit is contained in:
parent
763da727ac
commit
daec3c1ca4
14
TestDocker/MSSQL/Dockerfile
Normal file
14
TestDocker/MSSQL/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# 使用SQL Server官方镜像
|
||||||
|
FROM mcr.microsoft.com/mssql/server:2022-latest
|
||||||
|
|
||||||
|
# 设置环境变量
|
||||||
|
ENV ACCEPT_EULA=Y
|
||||||
|
ENV MSSQL_SA_PASSWORD=P@ssword123
|
||||||
|
ENV MSSQL_PID=Express
|
||||||
|
|
||||||
|
# 开放1433端口
|
||||||
|
EXPOSE 1433
|
||||||
|
|
||||||
|
# 健康检查
|
||||||
|
HEALTHCHECK --interval=30s --timeout=3s \
|
||||||
|
CMD /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P P@ssword123 -Q "SELECT 1" || exit 1
|
5
TestDocker/MSSQL/README.txt
Normal file
5
TestDocker/MSSQL/README.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
docker build -t mssql-server .
|
||||||
|
docker run -d \
|
||||||
|
-p 1433:1433 \
|
||||||
|
--name mssql-container \
|
||||||
|
mssql-server
|
Loading…
Reference in New Issue
Block a user