@@ -258,26 +258,28 @@ tar -cvf ../example.tar ./*
258
258
yaml文件用于上一键导入题目信息以及配置题目所属的K8S节点,需要使用节点部署的题只能通过导入config的形式添加
259
259
260
260
``` yaml
261
- name : pwn1 # challenge页面显示的题目名称
262
- category : PWN # 题目类型
261
+ name : dynamic_flag # challenge name
262
+ category : PWN # support [MISC|RE|PWN|WEB|CRYPTO|HARDWARE|RW]
263
263
score :
264
- baseScore : 1000 # 基本分数,动态积分和奖励根据基本分数的一定比例计算
265
- dynamic : true # 是否开启动态积分
264
+ baseScore : 1000 # base score
265
+ dynamic : true # if the score change with solved number
266
266
flag :
267
- value : flag{test} # 对于开启动态flag的题目value字段没用,flag由平台随机生成
268
- dynamic : true # 是否开启动态flag
269
- description : " this is a test pwn"
270
- externalLink : [http://cloud.lordcasser.com/s/DkxtK] # 题目附件链接
271
- singleton : false # true时题目所有用户都是同一个环境/flag,false时每人一个环境
267
+ value : xxxxxxxxxx # means that random dynamic flag length is 10
268
+ type : 3 # 0-Single 1-Multiple 2-Regexp 3-Dynamic
269
+ description : " description"
270
+ externalLink : ["http://link"]
271
+ singleton : false # false means this challenge will give every ctfer a container
272
+
273
+ # below is no need for singleton challenge
272
274
nodeConfig :
273
- - name : " pwn1" # 节点名称,要求[a~z 0~9]且必须有一个字母
274
- image : " pwn1" # 题目使用镜像的名称,需要提前上传好所使用的镜像
275
- servicePorts :
276
- - name : http # 不用更改
277
- protocol : TCP # 不用更改
278
- external : 8888 # 指定docker对外暴露的端口
279
- internal : 8888 # 指定docker容器内端口
280
- pod : 0 # 集群pod对外的端口,也是用户实际访问的端口,0为自动分配
275
+ - name : " pwn1" # give this name same as your uploaded image
276
+ image : " pwn1" # give this name same as your uploaded image
277
+ servicePorts : # default & DON'T CHANGE IT
278
+ - name : http # default & DON'T CHANGE IT
279
+ protocol : TCP # default & DON'T CHANGE IT
280
+ external : 8888 # default & DON'T CHANGE IT
281
+ internal : 8888 # default & DON'T CHANGE IT
282
+ pod : 0 # default & DON'T CHANGE IT
281
283
` ` `
282
284
283
285
##
0 commit comments