└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # 青少年CTF基础Docker镜像 2 | ## 说明 3 | 青少年CTF官方的出题基础环境,方便出题人对自己的程序进行构建和打包,并且方便出题人在本地测试。总结、优化了目前多数公开的CTF基础题目镜像,您可以下载后自行修改。 4 | 5 | 大家如果有好用的镜像或者思路,也可以给我们提供。您可以通过 https://github.com/qsnctf 中的`联系我们`与我们取得联系,并提供您的思路与想法。 6 | 7 | **因为镜像过多,并且需要长期维护,也为了方便使用,让大家可以通过`git clone`快速的拉取,然后快速的部署,所以分成了若干个单独的仓库。** 8 | 9 | ## 镜像列表 10 | - Web 11 | - 以Nginx为基础的Web镜像 12 | - Nginx 13 | - https://github.com/qsnctf/base_nginx 14 | - 拥有PHP的Nginx镜像 15 | - Nginx-PHP5.6 16 | - https://github.com/qsnctf/base_nginx_php_56 17 | - Nginx-PHP7.2 18 | - https://github.com/qsnctf/base_nginx_php_72 19 | - Nginx-PHP7.4 20 | - https://github.com/qsnctf/base_nginx_php_74 21 | - Nginx-PHP8.0 22 | - https://github.com/qsnctf/base_nginx_php_80 23 | - 拥有PHP和MySQL的Nginx镜像 24 | - Nginx-PHP5.6-MySQL 25 | - https://github.com/qsnctf/base_nginx_mysql_php_56 26 | - Nginx-PHP7.2-MySQL 27 | - https://github.com/qsnctf/base_nginx_mysql_php_72 28 | - Nginx-PHP7.4-MySQL 29 | - https://github.com/qsnctf/base_nginx_mysql_php_74 30 | - Nginx-PHP8.0-MySQL 31 | - https://github.com/qsnctf/base_nginx_mysql_php_80 32 | - 以Apache为基础的Web镜像 33 | - Apache(httpd) 34 | - https://github.com/qsnctf/base_httpd 35 | - 拥有PHP的Apache镜像 36 | - Apache(httpd)-PHP5.6 37 | - https://github.com/qsnctf/base_httpd_php_56 38 | - Apache(httpd)-PHP7.2 39 | - https://github.com/qsnctf/base_httpd_php_72 40 | - Apache(httpd)-PHP7.4 41 | - https://github.com/qsnctf/base_httpd_php_74 42 | - Apache(httpd)-PHP8.0 43 | - https://github.com/qsnctf/base_httpd_php_80 44 | - 拥有PHP和MySQL的Apache镜像 45 | - Apache(httpd)-PHP5.6-MySQL 46 | - https://github.com/qsnctf/base_httpd_mysql_php_56 47 | - Apache(httpd)-PHP7.2-MySQL 48 | - https://github.com/qsnctf/base_httpd_mysql_php_72 49 | - Apache(httpd)-PHP7.4-MySQL 50 | - https://github.com/qsnctf/base_httpd_mysql_php_74 51 | - Apache(httpd)-PHP8.0-MySQL 52 | - https://github.com/qsnctf/base_httpd_mysql_php_80 53 | - 以Python为基础的Web镜像 54 | - Python2.7 55 | - https://github.com/qsnctf/base_web_python27 56 | - Python3.8 57 | - https://github.com/qsnctf/base_web_python38 58 | - Python3.10 59 | - https://github.com/qsnctf/base_web_python310 60 | - 以Python为基础包含MySQL的Web镜像 61 | - Python2.7-MySQL 62 | - https://github.com/qsnctf/base_web_mysql_python27 63 | - Python3.8-MySQL 64 | - https://github.com/qsnctf/base_web_mysql_python38 65 | - Python3.10-MySQL 66 | - https://github.com/qsnctf/base_web_mysql_python310 67 | - Pwn 68 | - 以Ubuntu为基础包含Xinetd的Pwn镜像 69 | - Ubuntu16.04 70 | - https://github.com/qsnctf/base_pwn_xinetd_ubuntu_1604 71 | - Ubuntu18.04 72 | - https://github.com/qsnctf/base_pwn_xinetd_ubuntu_1804 73 | - Ubuntu20.04 74 | - https://github.com/qsnctf/base_pwn_xinetd_ubuntu_2004 75 | - Ubuntu22.04 76 | - https://github.com/qsnctf/base_pwn_xinetd_ubuntu_2204 77 | 78 | - Other 79 | - 以Python为基础的动态题目脚本镜像 80 | - https://github.com/qsnctf/base_other_python_http 81 | - 以Python为基础包含NC的镜像 82 | - 以Ubuntu20.04为基础的包含OpenSSH镜像 83 | - https://github.com/qsnctf/base_oepnssh_ubuntu20_04 84 | 85 | > 正在努力更新更多的环境... 86 | 87 | ## 题目投稿 88 | 目前仍然采取在论坛提交的方式,可以查看 https://bbs.qsnctf.com/thread-19-1-1.html ,但是建议使用我们目前版本的Web镜像,您如果不会打包Docker镜像,可以只提供源码,并详细说明源码的使用方法和环境配置注意事项。 89 | 90 | ## 问题反馈 91 | 目前仓库中的代码,在发布之前均有测试,如果出现一些问题,您可以在相应仓库的位置提交Issues,如果Issues长时间未处理,可以尝试联系我们。 92 | 93 | ## 参考与鸣谢 94 | 95 | 96 | 网址:https://github.com/CTF-Archives/ctf-docker-template 97 | > 感谢陈橘墨、探姬人维护的仓库,给出了解决PHP5.6-Apache中因Debian9源镜像站弃用、修改导致的404相关问题的思路。 98 | 99 | 网址:https://github.com/ctfhub-team/ctfhub_base_image 100 | > 感谢CTFhub的师傅的铺垫,根据上述仓库,我们在Python项目中增加调用了Gunicorn的WSGI,减轻并发压力。 101 | > 102 | > 同时也感谢CTFHub的师傅给出Ubuntu镜像中TCPDUMP和32位支持。 103 | > 104 | 网址:https://www.fujieace.com/kali-linux/lib32ncurses5.html 105 | > 感谢付杰在付杰博客中提出的`E: Unable to locate package lib32ncurses5`的相关解决方式。因为横跨了多个Ubuntu版本,相关源有所变更。 106 | > 107 | 网址:https://blog.csdn.net/fjh1997/article/details/113405060 108 | > 感谢fjh1997在CSDN发布的`构建ubuntu20 pwn题目镜像出现cp: cannot overwrite non-directory ‘/home/ctf/lib‘ with directory ‘ /usr/lib‘`并指出在Ubunt 19.04以上`/lib*`这个目录中的文件是软连接,来自于`/usr/lib*` 109 | 110 | --------------------------------------------------------------------------------