Skip to content

Commit 724812c

Browse files
committedJul 22, 2024
init
0 parents  commit 724812c

File tree

1,399 files changed

+132599
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,399 files changed

+132599
-0
lines changed
 

‎Dockerfile

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
FROM php:7.3-fpm-bullseye
2+
3+
# 制作者信息
4+
LABEL auther_template="CTF-Archives"
5+
6+
# apt更换镜像源,并更新软件包列表信息
7+
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
8+
sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
9+
RUN apt-get update
10+
RUN apt-get install -y tar nginx default-mysql-client default-mysql-server bash
11+
12+
# 安装必要的软件包
13+
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
14+
# apk add --update --no-cache tar nginx mysql mysql-client bash
15+
16+
# 配置mysql
17+
RUN docker-php-source extract && \
18+
docker-php-ext-install pdo_mysql mysqli && \
19+
docker-php-source delete && \
20+
mysql_install_db --user=mysql --datadir=/var/lib/mysql && \
21+
sh -c 'mysqld_safe &' && \
22+
sleep 5s && \
23+
mysqladmin -uroot password 'root'
24+
25+
# 复制nginx+mysql配置文件
26+
COPY ./config/nginx.conf /etc/nginx/nginx.conf
27+
COPY ./config/docker-php-ext-mysqli.ini /usr/local/etc/php/conf.d
28+
COPY ./config/docker-php-ext-pdo_mysql.ini /usr/local/etc/php/conf.d
29+
30+
# 复制web项目源码
31+
COPY xinhu-cb732f46f8f1e4614c8cfbef47a0bcbde6ecce34 /var/www/html
32+
33+
# 重新设置源码路径的用户所有权
34+
RUN chown -R www-data:www-data /var/www/html
35+
36+
# 复制数据库配置文件
37+
COPY ./data/db.sql /var/db.sql
38+
39+
# 拷贝容器入口点脚本
40+
COPY ./service/docker-entrypoint.sh /docker-entrypoint.sh
41+
RUN chmod +x /docker-entrypoint.sh
42+
43+
# 配置数据库数据
44+
RUN sh -c 'mysqld_safe &' \
45+
&& sleep 5s \
46+
&& mysqladmin -uroot password '123456' \
47+
&& mysql -e "source /var/db.sql;" -uroot -p123456
48+
49+
# 设置shell的工作目录
50+
WORKDIR /var/www/html
51+
52+
# [可选]指定对外暴露端口,对于GZCTF等平台,强制EXPOSE可能会造成非预期端口泄露,请酌情启用
53+
# EXPOSE 80
54+
55+
# 设置nginx日志保存目录
56+
VOLUME ["/var/log/nginx"]
57+
58+
# 设置容器入口点
59+
ENTRYPOINT [ "/docker-entrypoint.sh" ]

‎README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 信呼 v2.3.2
2+
3+
针对 CVE-2023-1773 的调试环境
4+
5+
增加了`webmain/task/api/reimplatAction.php`文件的调试参数,使得编码前后的数据传回前端

0 commit comments

Comments
 (0)
Please sign in to comment.