GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
791 stars 92 forks source link

flag模板的问题 #121

Closed MchalTesla closed 1 year ago

MchalTesla commented 1 year ago

flag模板只有在题目上线前的第一次编辑中生效,并且无法直接使用MyCTF{[GUID]},他会提示复杂度过低,请问这该如何解决

GZTimeWalker commented 1 year ago

@MchalTesla 第一个问题是预期行为,上线后已下发 flag 的实例不会变更。

第二个问题之前测试中能通过,请提供你的 GZCTF 版本和 commit 信息。

MchalTesla commented 1 year ago

我想起来了,第一个问题是因为一个团队的flag是固定的,所以在第一次启动后,以后的flag就都是固定的了,但是请问第二个问题怎么解决,我不想在我的flag里面添加多余的字符

GZTimeWalker commented 1 year ago

@MchalTesla 请提供你的版本号和 commit 信息,以便排查问题……

MchalTesla commented 1 year ago

image Program: GZ::CTF v0.15.2-f2b179b7648676f78356d5d7e17f3f19fabe1663 build appsettings.json

{
  "AllowedHosts": "*",
  "ConnectionStrings": {
    "Database": "Host=192.168.12.2:5432;Database=test;Username=postgres;Password=passwd",
    // redis is optional
    "RedisCache": "192.168.12.3:6379"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information",
    },
  },
  "EmailConfig": {
    "SendMailAddress": "a@a.com",
    "UserName": "",
    "Password": "",
    "Smtp": {
      "Host": "localhost",
      "Port": 587,
    },
  },
  "XorKey": "<Random Key Str>",
  "ContainerProvider": {
    "Type": "Docker", // or "Kubernetes"
    "PublicEntry": "www.test.com", // or "xxx.xxx.xxx.xxx"
    "DockerConfig": {
      // optional
      "SwarmMode": false,
      "Uri": "unix:///var/run/docker.sock",
    },
  },
  "RequestLogging": false,
  "DisableRateLimit": false,
  "RegistryConfig": {
    "UserName": "",
    "Password": "",
    "ServerAddress": "",
  },
  "GoogleRecaptcha": {
    "VerifyAPIAddress": "https://www.recaptcha.net/recaptcha/api/siteverify",
    "Sitekey": "",
    "Secretkey": "",
    "RecaptchaThreshold": "0.5",
  },
}
GZTimeWalker commented 1 year ago

@MchalTesla 相关问题已确认,将在下个版本中修复。

MchalTesla commented 1 year ago

谢谢

GZTimeWalker commented 1 year ago

fixed in https://github.com/GZTimeWalker/GZCTF/commit/ab5677aa2053267af951686e1dc5ebda459b561e