Skip to content
/ GZCTF Public
forked from kengwang/GZCTF

BaseCTF-Flavored GZCTF Platform. (Please checkout kengwang/GZCTF for latest commits.)

License

Notifications You must be signed in to change notification settings

Lil-Ran/GZCTF

 
 

Repository files navigation

Banner

GZ::CTF

publish version license Crowdin

Telegram Group QQ Group Discord

English, 简体中文, 日本語


Modified from GZCTF

The following new features have been added:

  • Allows submissions during the competition that do not count towards scoring
  • Allows multiple organizations to join via (or without) invitation code
  • Challenges page adapts to low-width windows/devices
  • Allows administrators to modify organization of specific team
  • Search for challenges on the challenges page (regex)
  • Scoreboard filters out non-public, filters challenges, displays associated organizations
  • Monitoring page hides Flag (for live streaming)
  • Scheduled challenge availability
  • Fake Flags (organizers set specified Flags, participants can submit them with correct message but counted as cheating in backend)
  • Custom icons for problem-solving status
  • Scoreboard export with username
  • Recalculate submission correctness (for updating after adding a Flag)

We are open to modification suggestions and welcome Issues or PRs.

How to migrate to kengwang/GZCTF:

Replace the image in compose.yml with:

registry.cn-hangzhou.aliyuncs.com/kengwang/gzctf:develop

Warning

Please note that due to changes in the database structure, if you want to continue using the original GZCTF data, please refer to the Migration Guide.


GZ::CTF is an open source CTF platform based on ASP.NET Core.

Important

To save your effort, please read the documentation carefully before using: https://docs.ctf.gzti.me/en

Warning

Upgrade and migration considerations:

  1. To upgrade the platform, simply pull the latest image and restart, and the database migration will be performed automatically.
  2. In general, downgrade operations are not supported. Upgrading versions with a large time span may result in data incompatibility, so please make sure to back up your data.
  3. After the upgrade, there may be new configuration items and changes in file structure. It is recommended to consult the official documentation or the community.
  4. If you are migrating to another branch project, please pay attention to whether the database structure has changed. The database after the change does not support rollback to the original version.
  5. The community and the official maintainers are not responsible for data loss, data incompatibility, and other issues. For issues with branch projects, please contact the corresponding project maintainer.

Features 🛠️

  • Create highly customizable challenges

    • Type of challenges: Static Attachment, Dynamic Attachment, Static Container, Dynamic Container

      • Static Attachment: Shared attachments, any configured flag can be accepted.
      • Dynamic Attachment: The number of flags and attachments must be at least the number of teams. Attachments and flags are distributed according to the teams.
      • Static Container: Shared container templates, no dynamic flag is issued, and any configured flag can be submitted.
      • Dynamic Container: Automatically generate and issue flags through container environment variables, and flag of each team is unique.
    • Dynamic Scores

      • Curve of scores:

        $$f(S, r, d, x) = \left \lfloor S \times \left[r + ( 1- r) \times \exp\left( \dfrac{1 - x}{d} \right) \right] \right \rfloor $$

        Where $S$ is the original score, $r$ is the minimum score ratio, $d$ is the difficulty coefficient, and $x$ is the number of submissions. The first three parameters can be customized to satisfy most of the dynamic score requirements.

      • Bonus for first three solves: The platform rewards 5%, 3%, and 1% of the current score for the first three solves respectively.

    • Disable or enable challenges during the competition, and release new challenges at any time.

    • Dynamic flag sharing detection, optional flag template, leet flag

  • Teams score timeline, scoreboard. Teams can be grouped

  • Dynamic container distribution, management, and multiple port mapping methods based on Docker or K8s

  • Real-time competition notification, competition events and flag submission monitoring, and log monitoring based on SignalR

  • SMTP email verification, malicious registration protection based on Google ReCaptchav3

  • Ban specific user, three-level user permission management

  • Optional team review, invitation code, registration email restriction

  • Writeup collection, review, and batch download in the platform

  • Download exported scoreboard, export all submission records

  • Monitor submissions and major event logs during the competition

  • Challenges traffic forwarding based on TCP over WebSocket proxy, configurable traffic capture

  • Cluster cache based on Redis, database storage backend based on PGSQL

  • Customizable global configuration, platform title, record information

  • Support metrics and distributed tracing

  • And more...

Demo 🗿

index.webp game.challenges.webp game.scoreboard.webp admin.settings.webp admin.challenges.webp admin.challenge.info.webp admin.challenge.flags.webp admin.game.info.webp admin.game.review.webp admin.teams.webp admin.instances.webp monitor.game.events.webp monitor.game.submissions.webp

About i18n 🌐

Please refer to translate.ctf.gzti.me to learn more or participate in the translation work.

Contributors 👋

CTF hosted with GZ::CTF 🏆

Some event organizers have already chosen GZCTF and successfully completed their competitions. Their trust, support, and timely feedback are the primary driving force behind the continuous improvement of GZCTF.

  • THUCTF 2022: Tsinghua University Network Security Technology Challenge
  • ZJUCTF 2022/2023: Zhejiang University CTF
  • SUSCTF 2022/2023/2024: Southeast University Tiger Crouching, Dragon Coiling Cup Network Security Challenge
  • DIDCTF 2022/2023: Gansu Political and Legal University CTF
  • Woodpecker: The First Network Security Practice Competition of Shandong University of Science and Technology
  • NPUCTF 2022: Northwestern Polytechnical University CTF
  • SkyNICO Network Space Security Tri-school Competition (Xiamen University of Technology, Fujian Normal University, Qilu University of Technology)
  • Hunan Police Academy Network Security Attack and Defense Competition
  • W4terCTF 2023: The First Information Security Novice Competition of Sun Yat-sen University
  • TongjiCTF 2023: The Fifth Network Security Competition of Tongji University
  • CTBUCTF 2023: The First Network Security Competition of Chongqing Technology and Business University
  • NPUCTF 2023 - The First Security Experimental Skills Competition of Northwestern Polytechnical University
  • XZCTF 2023: The First Network Security Novice Competition of Zhejiang Normal University Xingzhi College
  • ORGCTF 2023: Gongcheng Cup Freshman Competition of Harbin Engineering University
  • SHCTF 2023: "Shanhe" Network Security Skills Challenge
  • Tianjin University of Science and Technology 2023 College Student Maker Training Camp Network Security Group Selection
  • HYNUCTF 2023: Xuantian Network Security Laboratory Recruitment Competition of Hunan Hengyang Normal University
  • NYNUCTF S4: Recruitment Competition of Xuantian Network Security Laboratory of Nanyang Normal University
  • The First Network Security Freshman Challenge of Shangqiu Normal University
  • SVUCTF-WINTER-2023: Suzhou Vocational University 2023 Winter Freshman Competition
  • BIEM CTF 2024:Beijing Institute Of Economics And Management - The first BIEM "Xin'an Cup" CTF competition
  • BUAACTF 2024: Beihang University CTF
  • San Diego CTF 2024: University of California, San Diego
  • The first "Qu STAR" network security skills competition of Qufu Normal University

The list is not in any particular order, and PRs are welcome for additions.

Special Thanks ❤️‍🔥

Thanks to NanoApe, the organizer of THUCTF 2022, for providing sponsorship and conducting Alibaba Cloud public network stress testing. This helped validate the service stability of the GZCTF standalone instance (16c90g) under the pressure of thousands of concurrent requests and 1.34 million requests in three minutes.

Stars ✨

Stargazers over time

About

BaseCTF-Flavored GZCTF Platform. (Please checkout kengwang/GZCTF for latest commits.)

Resources

License

Stars

Watchers

Forks

Languages

  • C# 50.8%
  • TypeScript 47.2%
  • CSS 1.7%
  • Other 0.3%