Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(misc/neko-quiz): 新增题目「猫咪问答」 #19

Merged
merged 9 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/misc.neko_quiz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Challenge NekoQuiz

on:
push:
branches: ["main", "misc/neko-quiz"]
paths:
- "!**/README.md"
- "challenges/misc/neko_quiz/build/**"
workflow_dispatch:

env:
TYPE: misc
NAME: neko_quiz
REGISTRY: ghcr.io

jobs:
challenge-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.NAME }}
tags: |
latest

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: challenges/${{ env.TYPE }}/${{ env.NAME }}/build
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
21 changes: 21 additions & 0 deletions challenges/misc/neko_quiz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: 猫咪问答
author: 13m0n4de
difficulty: Baby/Trivial/Easy/Normal/Medium/Hard/Expert/Insane
category: Misc
image:
port: 3000
writeup_author:
tags:
reference:
---

# 猫咪问答

## 题目描述

<description>

## 题目解析

<analysis>
3 changes: 3 additions & 0 deletions challenges/misc/neko_quiz/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/13m0n4de/neko-quiz:latest

COPY config.toml config.toml
36 changes: 36 additions & 0 deletions challenges/misc/neko_quiz/build/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[general]
title = "猫咪问答"
return_score = true

[[questions]]
text = "在 SVUCTF 2023 年冬季赛中,全场一共提交多少次 Flag?其中多少次错误提交?"
points = 25
hint = "格式:提交次数_错误次数,使用下划线分隔。如:132_39"
answers = ["78_41"]

[[questions]]
text = "我校一号门旁的体育中心曾有一家「华莱士」,后来中间的「莱」字因为种种原因去掉了,成了「华 士」,再后来它就关门了。你能找出在炸鸡店之前那里开的是什么店吗?"
points = 25
hint = "填写店铺全名"
answers = ["旺厨美食园"]

[[questions]]
text = "Python 3.13.0 的最后一个 Alpha 版本发布于什么日期?"
points = 25
hint = "格式:YYYY-MM-DD ,如 1900-01-01"
answers = ["2024-04-09"]

[[questions]]
text = "几个月前 RFC 提出了一种利用大语言模型实现的超光速传输网络协议。然而,这种协议可能面临一种特殊攻击:预测未来的数据包,并提前将其发送到目的地。这种新型攻击手段的名称是什么?"
points = 25
hint = "全小写英文字母"
answers = ["futureplay"]

[flag]
env = "GZCTF_FLAG"
file = "/flag"
static_str = "flag{neko_quiz_static_flag}"

[message]
incorrect = "没有全部答对,不能给你 FLAG 哦。"
correct = "🎉🎉🎉 $FLAG 🎉🎉🎉"
Loading