mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-05-05 10:17:49 +00:00
feat: 添加Oracle测试靶场
This commit is contained in:
parent
daec3c1ca4
commit
5190d63680
16
TestDocker/Oracle/Dockerfile
Normal file
16
TestDocker/Oracle/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
# 使用Oracle官方容器镜像
|
||||
FROM container-registry.oracle.com/database/express:latest
|
||||
|
||||
# 设置环境变量
|
||||
ENV ORACLE_PWD=123456
|
||||
ENV ORACLE_SID=XE
|
||||
ENV ORACLE_PDB=XEPDB1
|
||||
|
||||
# 开放1521端口
|
||||
EXPOSE 1521
|
||||
|
||||
# 健康检查
|
||||
HEALTHCHECK --interval=30s --timeout=3s \
|
||||
CMD sqlplus -L sys/123456@//localhost:1521/XE as sysdba << EOF
|
||||
exit;
|
||||
EOF
|
11
TestDocker/Oracle/README.txt
Normal file
11
TestDocker/Oracle/README.txt
Normal file
@ -0,0 +1,11 @@
|
||||
首先需要在Oracle Container Registry网站注册并接受许可协议:
|
||||
https://container-registry.oracle.com
|
||||
|
||||
docker login container-registry.oracle.com
|
||||
|
||||
docker build -t oracle-db .
|
||||
|
||||
docker run -d \
|
||||
-p 1521:1521 \
|
||||
--name oracle-container \
|
||||
oracle-db
|
Loading…
x
Reference in New Issue
Block a user