Skip to content

Commit

Permalink
Recovery port expose action for GZCTF
Browse files Browse the repository at this point in the history
  • Loading branch information
Randark-JMT committed Sep 20, 2024
1 parent 6f9faf7 commit 60d614d
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 35 deletions.
3 changes: 1 addition & 2 deletions crypto-python_3.10-no_socket/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ RUN useradd -m ctf
RUN chown ctf:ctf /app
USER ctf

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/app/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions crypto-python_3.10-with_socket/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ RUN useradd -m ctf
RUN chown ctf:ctf /app
USER ctf

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/app/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions crypto-python_3.8-no_socket/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ RUN useradd -m ctf
RUN chown ctf:ctf /app
USER ctf

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/app/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions crypto-python_3.8-with_socket/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ RUN useradd -m ctf
RUN chown ctf:ctf /app
USER ctf

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/app/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions crypto-sagemath_9.6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ COPY ./src/main.sage /home/sage
# 拷贝启动脚本至根目录
COPY ./service/docker-entrypoint.sh /home/sage/docker-entrypoint.sh

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/home/sage/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions misc-lsb-dynamic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ WORKDIR /home/ctf
# 部署程序
COPY ./src /app

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/sh","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions misc-pyjail-python_3.10-socat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ WORKDIR /home/ctf
# 部署程序
COPY ./src/server.py /home/ctf/server.py

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/sh","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions misc-pyjail-python_3.10-xinetd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ WORKDIR /home/ctf
# 部署程序
COPY ./src/server.py /home/ctf/server.py

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/sh","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions pwn-ubuntu_16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN chown -R root:ctf /home/ctf && \
touch /home/ctf/flag && \
chmod 744 /home/ctf/flag

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions pwn-ubuntu_18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ RUN chown -R root:ctf /home/ctf && \
touch /home/ctf/flag && \
chmod 744 /home/ctf/flag

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions pwn-ubuntu_20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ RUN chown -R root:ctf /home/ctf && \
touch /home/ctf/flag && \
chmod 744 /home/ctf/flag

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions pwn-ubuntu_22.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ RUN chown -R root:ctf /home/ctf && \
touch /home/ctf/flag && \
chmod 744 /home/ctf/flag

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 9999
EXPOSE 9999

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions web-flask-python_3.10/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ RUN python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
COPY ./src/ /app
COPY ./service/docker-entrypoint.sh /

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 8080
EXPOSE 8080

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions web-flask-python_3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ RUN python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
COPY ./src/ /app
COPY ./service/docker-entrypoint.sh /

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 8080
EXPOSE 8080

# 指定容器入口点
ENTRYPOINT ["/bin/bash","/docker-entrypoint.sh"]
3 changes: 1 addition & 2 deletions web-java-openjdk8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ LABEL auther_template="CTF-Archives"
COPY ./src /app
COPY ./service/docker-entrypoint.sh /docker-entrypoint.sh

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# 开放的端口取决于服务,一般为8080
开放的端口取决于服务,一般为8080
# EXPOSE 8080

# 指定容器入口点
Expand Down
1 change: 0 additions & 1 deletion web-lamp-php80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ RUN sh -c 'mysqld_safe &' \
# 设置shell的工作目录
WORKDIR /var/www/html

# # [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# # EXPOSE 80

# 设置nginx日志保存目录
Expand Down
3 changes: 1 addition & 2 deletions web-lnmp-php73/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ RUN sh -c 'mysqld_safe &' \
# 设置shell的工作目录
WORKDIR /var/www/html

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 80
EXPOSE 80

# 设置nginx日志保存目录
VOLUME ["/var/log/nginx"]
Expand Down
3 changes: 1 addition & 2 deletions web-nginx-php73/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ RUN chown -R www-data:www-data /var/www/html
# 设置shell的工作目录
WORKDIR /var/www/html

# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
# EXPOSE 80
EXPOSE 80

# 设置nginx日志保存目录
VOLUME ["/var/log/nginx"]
Expand Down

0 comments on commit 60d614d

Please sign in to comment.