Coder Social home page Coder Social logo

cg-ctf's Introduction

Welcome to CGCTF 👋

Version Documentation

Twitter: homura Twitter: meizjm3i

A open source CTF platform.

Homepage🏠

https://cgctf.nuptsast.com/

Deploy

Backend

访问 /IN1t4dmin_Cg_c7f_X1c_+1s 可新增管理员, confirm code 为env中填写的 ADMIN_CODE 值

安装CGCTF前,确保服务器上已装好 apache/nginx mysql php5.0+(推荐7.0+) composer node.js npm

另外 因为node版本过高的时候 node-sass会不支持,建议node版本为7.x

并确保php的一些扩展模块也已被安装//反正装的时候 缺啥装啥。。。。

要注意web根目录在 CG-CTF/CG-CTF/public, 保证CG-CTF 根目录下的文件 (特别是 .env) 不能被访问到

克隆到本地之后

composer install --ignore-platform-reqs

composer update

修改 .env.example 中的内容

APP_URL 必填,为网站url

DB_ 必填,按照自己服务器上数据库的配置填写

MAIL_ 用于发送重置密码的邮件,如果不填,则无法重置密码

ADMIN_CODE 用于创建管理员的密码,(创建完毕可以删除该值,也可以将routes/web.php中 'IN1t4dmin_Cg_c7f_X1c_+1s' 路由注释掉 )

并保存为.env

在 CG-CTF/CG-CTF 目录下:

执行 php artisan key:generate

执行 php artisan migrate

这两条命令第一条用于创建该项目的Key,用于加密,第二条用于迁移数据库,会在数据库中创建平台所需要的表

FrontEnd

需要安装依赖,嫌太慢可以挂梯子,或者用cnpm、yarn

npm install

之后同步前端的样式需要运行

npm run dev

Author

  • homura

-w70

  • meizjm3i

-w70

  • acdxvfsvd

-w70

  • GooeyNyan

-w70

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

cg-ctf's People

Contributors

acdxvfsvd avatar gooeynyan avatar meizjm3i avatar wjbsyc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.