└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # CTFHUB 基础环境 2 | 3 | ## Summary 4 | 5 | - Pwn 6 | - Native - [Example/Demo](https://github.com/ctfhub-team/challenge_bsidessf_2019_pwn_slowfire) 7 | - [x] [base_pwn_native_1604](https://github.com/ctfhub-team/base_pwn_native_1604) 8 | - [x] [base_pwn_native_1804](https://github.com/ctfhub-team/base_pwn_native_1804) 9 | - Xinetd - [Example/Demo](https://github.com/ctfhub-team/challenge_bctf_2018_pwn_begentle) 10 | - [x] [base_pwn_xinetd_1604](https://github.com/ctfhub-team/base_pwn_xinetd_1604) 11 | - [x] [base_pwn_xinetd_1804](https://github.com/ctfhub-team/base_pwn_xinetd_1804) 12 | - Web 13 | - Nginx - Alpine 14 | - General 15 | - [x] [base_web_nginx](https://github.com/ctfhub-team/base_web_nginx) 16 | - PHP-FPM - [Example/Demo](https://github.com/ctfhub-team/challenge_pwnhub_2017_web_open_weekday) 17 | - [x] [base_web_nginx_php_56](https://github.com/ctfhub-team/base_web_nginx_php_56) 18 | - [x] [base_web_nginx_php_74](https://github.com/ctfhub-team/base_web_nginx_php_74) 19 | - PHP-FPM & MySQL - [Example/Demo](https://github.com/ctfhub-team/challenge_gyctf_2020_web_babyphp) 20 | - [x] [base_web_nginx_mysql_php_56](https://github.com/ctfhub-team/base_web_nginx_mysql_php_56) 21 | - [x] [base_web_nginx_mysql_php_74](https://github.com/ctfhub-team/base_web_nginx_mysql_php_74) 22 | - Httpd - Debian 23 | - General & CGI 24 | - [x] [base_web_httpd](https://github.com/ctfhub-team/base_web_httpd) 25 | - PHP-MOD 26 | - [x] [base_web_httpd_php_56](https://github.com/ctfhub-team/base_web_httpd_php_56) 27 | - [x] [base_web_httpd_php_74](https://github.com/ctfhub-team/base_web_httpd_php_74) 28 | - PHP-MOD & MySQL 29 | - [x] [base_web_httpd_mysql_php_56](https://github.com/ctfhub-team/base_web_httpd_mysql_php_56) 30 | - [x] [base_web_httpd_mysql_php_74](https://github.com/ctfhub-team/base_web_httpd_mysql_php_74) 31 | - Python - Alpine 32 | - Gunicron - [Example/Demo](https://github.com/ctfhub-team/challenge_ddctf_2019_web_homebrew_event_loop_base) 33 | - [x] [base_web_gunicorn_python_27](https://github.com/ctfhub-team/base_web_gunicorn_python_27) 34 | - [x] [base_web_gunicorn_python_36](https://github.com/ctfhub-team/base_web_gunicorn_python_36) 35 | - Supervisor 36 | - [x] [base_web_supervisor_python_27](https://github.com/ctfhub-team/base_web_supervisor_python_27) 37 | - [x] [base_web_supervisor_python_36](https://github.com/ctfhub-team/base_web_supervisor_python_36) 38 | - Tomcat - Alpine - [Example/Demo](https://github.com/ctfhub-team/challenge_wangdingbei_2020_web_qinglong_filejava) 39 | - [x] [base_web_tomcat_8u121](https://github.com/ctfhub-team/base_web_tomcat_8u121) 40 | - [x] [base_web_tomcat_8u171](https://github.com/ctfhub-team/base_web_tomcat_8u171) 41 | - [x] [base_web_tomcat_8u191](https://github.com/ctfhub-team/base_web_tomcat_8u191) 42 | - [x] [base_web_tomcat_8u212](https://github.com/ctfhub-team/base_web_tomcat_8u212) 43 | - NodeJs - Debian 44 | - General - [Example/Demo](https://github.com/ctfhub-team/challenge_wangdingbei_2020_web_qinglong_notes) 45 | - [x] [base_web_nodejs_pm2](https://github.com/ctfhub-team/base_web_nodejs_pm2) 46 | - XSSBot 47 | - [x] [base_web_nodejs_koa_xssbot](https://github.com/ctfhub-team/base_web_nodejs_koa_xssbot) 48 | 49 | ## 目录结构及说明 50 | 51 | ### Web 类 52 | 53 | ``` 54 | / 55 | ├── docker-compose.yml 56 | ├── Dockerfile 57 | ├── _files 58 | │ ├── docker-entrypoint* 环境入口文件 59 | │ ├── flag.sh 动态 Flag 处理文件 60 | │ └── supervisord.conf (非必须,仅base_web_supervisor_*) 61 | ├── meta.yml 元数据文件,题目名称及相关说明 62 | └── src 63 | └── index.php 64 | ``` 65 | 66 | ### Pwn 67 | 68 | Native 环境为基础 Ubuntu 环境,仅预装 tcpdump、lib32stdc++6 等库(详情请看源码),利用 socat 将容器暴露端口转发至题目监听端口。适用于自监听类题目。 69 | 70 | Xinetd 在 Native 的基础上(无socat)安装了 xinetd,并以此运行题目。 71 | 72 | ``` 73 | / 74 | ├── docker-compose.yml 75 | ├── Dockerfile 76 | ├── _files 77 | │ ├── start.sh 环境入口文件 78 | │ └── flag.sh 动态 Flag 处理文件 79 | ├── meta.yml 元数据文件,题目名称及相关说明 80 | ├── source (非必须,源代码文件夹) 81 | │ └── xxx.c 82 | └── src 83 | ├── pwn 题目可执行文件 84 | └── pwn.xinetd.conf (非必须,xinetd配置) 85 | ``` --------------------------------------------------------------------------------