diff --git a/api.php b/api.php index 32699a7..2ec149a 100644 --- a/api.php +++ b/api.php @@ -1,14 +1,16 @@ + 用户页面 - 附件分发 - woodpecker2024 @@ -10,23 +11,37 @@ + - - -

欢迎来到woodpecker2024::ctf

-

您当前作为队伍 [#REPLACE-ANCHOR-0#](id=#REPLACE-ANCHOR-1#) 登录

+ +
欢迎来到woodpecker2024::ctf
+
您当前作为队伍
[#REPLACE-ANCHOR-0#](id=#REPLACE-ANCHOR-1#)
登录

-
-由本服务提供的题目列表(点击下载附件或进行交互,在新窗口打开)
-#REPLACE-ANCHOR-2# -
+
+
+
+
+
+
+
由本服务提供的题目列表(点击下载附件或进行交互,在新窗口打开)
+

+ #REPLACE-ANCHOR-2# +
+
+
+
+
+
- + diff --git a/docker_container/container-start.sh b/docker_container/container-start.sh deleted file mode 100644 index 2c4d17c..0000000 --- a/docker_container/container-start.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -docker run --memory 1GB --user root --volume /media/sf_woodpecker2024/attachment_server/:/root/www/:ro --volume /media/sf_woodpecker2024/attachment_server/log/:/root/log/:rw --workdir /root/ --expose 12345 --network host --interactive --tty --name ly65-attachment-server --hostname woodpecker2024 --rm --detach debian:11-slim sh /root/www/docker_container/inside-container_start.sh diff --git a/docker_container/gor_linux_x64.orig.elf b/docker_container/gor_linux_x64.orig.elf deleted file mode 100644 index 18383c7..0000000 Binary files a/docker_container/gor_linux_x64.orig.elf and /dev/null differ diff --git a/docker_container/gor_linux_x64.upx.elf b/docker_container/gor_linux_x64.upx.elf deleted file mode 100644 index 640af1d..0000000 Binary files a/docker_container/gor_linux_x64.upx.elf and /dev/null differ diff --git a/docker_container/inside-container_start.sh b/docker_container/inside-container_start.sh deleted file mode 100644 index 73d3472..0000000 --- a/docker_container/inside-container_start.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -cd /root/ - -apt update -apt install -y --no-install-recommends util-linux psmisc nginx-light php7.4-fpm php7.4-curl php7.4-mbstring php7.4-gd - -killall -9 php-fpm7.4 -killall -9 nginx -killall -9 gor_linux_x64.upx.elf - -cp --force /root/www/docker_container/nginx.conf /etc/nginx/nginx.conf -cp --force /root/www/docker_container/nginx-0.conf /root/nginx-0.conf - -cp --force /root/www/docker_container/php-fpm.conf /etc/php/7.4/fpm/php-fpm.conf -cp --force /root/www/docker_container/php-fpm.www.conf /root/php-fpm.www.conf - -php-fpm7.4 --allow-to-run-as-root -nginx - -#setsid --fork /root/www/docker_container/gor_linux_x64.upx.elf --copy-buffer-size 1048576 --input-tcp :12345 --input-raw-realip-header "X-GOR-Real-IP" --output-http "http://127.0.0.1:25000" --output-file /root/log/gor_traffic.log --output-file-append - -#tail -f /dev/null -#sleep infinity -bash -i diff --git a/docker_container/nginx-0.conf b/docker_container/nginx-0.conf deleted file mode 100644 index 58e8b07..0000000 --- a/docker_container/nginx-0.conf +++ /dev/null @@ -1,39 +0,0 @@ -#it's already in the http directive - -server { - listen 25000; - #listen [::]:25000; - - root /root/www; - - add_header Access-Control-Allow-Origin * always; - - charset utf-8; - - location = / { - allow all; - index index.html; - } - - location = /index.html { - allow all; - } - - location = /api.php { - allow all; - include fastcgi_params; - fastcgi_pass unix:/root/php-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - } - - location /assets/ { - allow all; - } - - location / { - deny all; - } - - error_page 405 =200 $uri; - -} diff --git a/docker_container/nginx.conf b/docker_container/nginx.conf deleted file mode 100644 index 49170cf..0000000 --- a/docker_container/nginx.conf +++ /dev/null @@ -1,92 +0,0 @@ -user root; -worker_processes auto; -pid /run/nginx.pid; -include /etc/nginx/modules-enabled/*.conf; - -events { - worker_connections 768; - # multi_accept on; -} - -http { - - ## - # Basic Settings - ## - - sendfile on; - tcp_nopush on; - types_hash_max_size 2048; - # server_tokens off; - - # server_names_hash_bucket_size 64; - # server_name_in_redirect off; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - ## - # SSL Settings - ## - - ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE - ssl_prefer_server_ciphers on; - - ## - # Logging Settings - ## - - log_format custom_log '[$time_local], ' - 'remote=$remote_addr:$remote_port, ' - 'local=$server_addr:$server_port, ' - 'request=\n$request\n\n$request_body\n' - 'status=$status, len=$body_bytes_sent, ' - 'request_time=$request_time\n\n'; - - access_log /root/log/access.log custom_log; - error_log /root/log/error.log debug; - - ## - # Gzip Settings - ## - - gzip on; - - # gzip_vary on; - # gzip_proxied any; - # gzip_comp_level 6; - # gzip_buffers 16 8k; - # gzip_http_version 1.1; - # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - - ## - # Virtual Host Configs - ## - - include /etc/nginx/conf.d/*.conf; - #include /etc/nginx/sites-enabled/*; - - include /root/nginx-*.conf; -} - - -#mail { -# # See sample authentication script at: -# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript -# -# # auth_http localhost/auth.php; -# # pop3_capabilities "TOP" "USER"; -# # imap_capabilities "IMAP4rev1" "UIDPLUS"; -# -# server { -# listen localhost:110; -# protocol pop3; -# proxy on; -# } -# -# server { -# listen localhost:143; -# protocol imap; -# proxy on; -# } -#} diff --git a/docker_container/php-fpm.conf b/docker_container/php-fpm.conf deleted file mode 100644 index 026fd79..0000000 --- a/docker_container/php-fpm.conf +++ /dev/null @@ -1,12 +0,0 @@ -[global] -pid = /root/php-fpm.pid - -error_log = /root/log/php7.4-fpm.log -log_level = notice -log_limit = 4096 - -log_buffering = no - -daemonize = yes - -include = /root/php-fpm.*.conf \ No newline at end of file diff --git a/docker_container/php-fpm.www.conf b/docker_container/php-fpm.www.conf deleted file mode 100644 index 54df7f4..0000000 --- a/docker_container/php-fpm.www.conf +++ /dev/null @@ -1,13 +0,0 @@ -[www] - -listen = /root/php-fpm.sock - -user = root -group = root - -pm = ondemand -pm.max_children = 16 -pm.start_servers = 4 -pm.process_idle_timeout = 60s - -pm.max_requests = 4 \ No newline at end of file diff --git a/incl_user_panel.php b/incl_user_panel.php index 6f83671..a849c20 100644 --- a/incl_user_panel.php +++ b/incl_user_panel.php @@ -20,7 +20,7 @@ for($a=0; $a"; - $li[2].="\n"; + $li[2].="
\n"; } unset($a); diff --git a/index.html b/index.html index c1d548a..8a55ca0 100644 --- a/index.html +++ b/index.html @@ -3,65 +3,53 @@ + ly65的附件分发站 - woodpecker2024 - - -

欢迎来到 woodpecker::ctf 2024 !

- -
-这里是 ly65 的一个小站,用于分发本次比赛的部分附件,并提供一些共用容器服务
-
-在继续之前,请仔细阅读以下说明和约定
-
-- 本服务使用 team_token 验证身份(在哪?)请勿泄露给非本队成员。
-
-- 除非另有说明,否则本附件分发服务提供的附件对每个用户都是固定的,不会因时间或请求次数而改变。
-
-- 为了确保有足够的辨识度,若 flag 需要从图形中读出,此类 flag 统一使用 Ubuntu Mono derivative Powerline 字体绘制(字体licence)
-
-- 本服务器并非靶机,未进行安全防护,且可用资源有限。在比赛期间,它是一个共用容器,因此:
-
-  - 所有交互题目都被设计能够在 30 次 HTTP 请求之内完成。请避免频繁或重复请求,以免过度占用服务器资源。
-
-  - 请勿进行渗透、注入、端口扫描等攻击。但允许对本附件分发服务(仅 /api.php)发送任意 HTTP 请求,只要不频繁发送或携带大量数据。
-
-- 对于可能与其他队伍产生信息交流的特殊题目,请勿泄露任何比赛相关内容,包括但不限于 flag、team_token、解题思路等。
-
-我们会记录比赛期间的服务器日志等信息,以检测违规行为,并视情况对违规者进行警告、禁赛等处罚。
-
-请共同维护公平、友好的比赛环境。
+
+
+
欢迎来到 woodpecker::ctf 2024 !
+
+
+
+
+
+ 这里是 ly65 的一个小站,用于分发本次比赛的部分附件,并提供一些共用容器服务

+ 在继续之前,请仔细阅读以下说明和约定

+ 本服务使用
验证身份
(在哪?)
请勿泄露
给非本队成员。

+ 除非另有说明,否则本附件分发服务提供的附件对每个用户都是固定的,不会因时间或请求次数而改变。

+ 为了确保辨识度,若 flag 需要从图形中读出,此类 flag 统一使用 Ubuntu Mono derivative Powerline字体绘制(字体licence

+
本服务器并非靶机
,未进行安全防护,且可用资源有限。在比赛期间,它是一个
共用容器
,因此:

+ 所有交互题目都被设计能够在 30 次 HTTP 请求之内完成。请
避免频繁或重复请求
,以免过度占用服务器资源。

+
请勿进行渗透、注入、端口扫描等攻击
。但
允许
对本附件分发服务(
仅 /api.php
)发送任意 HTTP 请求,只要不频繁发送或携带大量数据。

+ 对于可能与其他队伍产生信息交流的特殊题目,
请勿泄露任何比赛相关内容,包括但不限于 flag、team_token、解题思路等


+ 我们会记录比赛期间的服务器日志等信息,以检测违规行为,并视情况对违规者进行警告、禁赛等处罚。

+ 请共同维护公平、友好的比赛环境。

+
继续操作即视为您同意遵守上述约定


-继续操作即视为您同意遵守上述约定 - - -
- -
- - - - -比赛id - - - -请输入您的team_token - - - + + + +
比赛id
+ +
+
请输入您的team_token
+ +
- -
-
- +

+ +
+ +
+ \ No newline at end of file diff --git a/phplib/libvar_cid2tid.php b/phplib/libvar_cid2tid.php index 4eaaf37..962d7a4 100644 --- a/phplib/libvar_cid2tid.php +++ b/phplib/libvar_cid2tid.php @@ -24,12 +24,12 @@ $cid2tid_l=[ ], "wood-2"=>[ - "cid_1"=>"tid_1", - "cid_2"=>"tid_2", - "cid_3"=>"tid_3", - "cid_4"=>"tid_4", - "cid_5"=>"tid_5", - "cid_6"=>"tid_6", + "cid_85"=>"tid_1", + "cid_86"=>"tid_2", + "cid_89"=>"tid_3", + "cid_88"=>"tid_4", + "cid_90"=>"tid_5", + "cid_87"=>"tid_6", ], ]; \ No newline at end of file